Tickets Please! A Ticket for the (Command) Bus
summary
Demonstrates using SimpleBus Command Bus and Event Bus inside Symfony to refactor a large ticket‑sale controller into small commands, handlers and event subscribers. Shows separating domain entities (constructor validation with external Doctrine mapping) and repository interfaces, and extracting responsibilities—create ticket, send email, send SMS, handle promotion—into independent pieces to build a testable, maintainable ticket‑sale API.
AI-written summary · about
chapters (11)
- 0:00Series intro
- 3:39Ticket sharing problem
- 6:59Season 1 and fat controller
- 12:19Searching for a solution
- 14:06Command Bus and SOLID
- 16:57Season 2 fresh start
- 23:22Domain-applicative decoupling
- 31:34Events and subscribers
- 37:42Domain exception handling
- 40:07Key concepts summary
- 42:16Conclusion and future
related talks
54mFrom domain to code: a practical approach
56mThe absolute beginner's guide to Domain Driven Design with Symfony
02h 05mSymfony Messenger
43mControllers: Beyond HTTP and Symfony
23mSymfony Messenger: Messages, Queues, Workers and more
41mBuilding first-class REST APIs with Symfony
44mAn Introduction to Symfony Messenger
02h 09mSymfony Forms in Detail
