Command bus
In practice
Marcin Hawraniak
About me
●
●
●
●
Disclaimer
●
●
●
Command Bus - why?
From ...
To...
HandlerCommand
Moving code from
Controller
To
Handler
Thin Controller
Command Bus - How?
Implementations
Implementations
Tactitian + Symfony
Getting started
Thin Controller
Single Responsibility
Handler
Command
Command Bus
Tactitian plugins - Custom Middlewares
Logging Middleware
Logging - assumptions
Logging - notes
Transaction Middleware
Transactions Middleware
Locker Class per Command
Locking Middleware - notes
Validation Middleware
Validation Middleware
Our handler - extracting validation
Validator Class per Command
Register middlewares
That handler...
Event Dispatcher
Event Dispatcher
Adding new Command
Other
●
●
●
●
●
Summary
Summary
●
●
●
●
Resources
● https://tactician.thephpleague.com/
● https://github.com/thephpleague/tactician-bundle
● https://matthiasnoback.nl/2015/01/a-wave-of-command-buses/
● http://symfony.com/app.php/doc/current/create_framework/event_dispatcher.html
Questions?
●
●
Thank you <3