PhpStorm
 
Get PhpStorm

Events

Last modified: 17 June 2024

A good practice in application design is making use of componentization and loose coupling. Ideally, components should have no knowledge of other components except for their interface or events. This allows reusing components over different applications or swapping out components with other implementations.

Symfony provides the EventDispatcher component that lets your application components communicate with each other by dispatching events and listening to them.