PhpStorm
 
Get PhpStorm
You are viewing the documentation for an earlier version of PhpStorm.

Events

Last modified: 24 August 2023

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.