EventDispatcher: Decoupled Events
Dispatch and listen to events using Symfony's EventDispatcher.
What is EventDispatcher?
Symfony EventDispatcher implements the Observer pattern. Code dispatches events; listeners react to them — without the dispatcher knowing anything about the listeners.
Installing
Install the component.
$ composer require symfony/event-dispatcherAll lessons in this course
- HttpFoundation: Request and Response
- DependencyInjection Container
- EventDispatcher: Decoupled Events
- Console Component: CLI Commands