Rearchitect for different types of response

This commit is contained in:
2018-12-20 21:10:39 +00:00
parent a8c3fa4a00
commit d72474e296
5 changed files with 74 additions and 27 deletions

View File

@@ -2,7 +2,7 @@
If you know, you know
- `src/entryPoint.php` is the main entry-point function. It will look through all registered implementation of MessageHandler and take the first one that can handle the message. **Register new message handler here.**
- `src/MessageHandler.php` is the interface for message handlers.
- `src/entryPoint.php` is the main entry-point function. It will look through all registered implementations of MessageHandler and take the first one that successfully handled the message. **Register new message handler here.**
- `src/MessageHandler.php` is the abstract class for message handlers. It has a pre-implemented functions to send responses.
- `src/repl.php` is a REPL to send test messages to the entryPoint, intended for quick tests, using PHP CLI.
- `test/` is for PHPUnit tests. It is quite empty atm and only contain a placeholder.