Documentation

EventDispatcherInterface

Allows providing hooks on domain-specific lifecycles by dispatching events.

Table of Contents

Methods

dispatch()  : object
Dispatches an event to all registered listeners.

Methods

dispatch()

Dispatches an event to all registered listeners.

public dispatch(object $event) : object

For BC with Symfony 4, the $eventName argument is not declared explicitly on the signature of the method. Implementations that are not bound by this BC constraint MUST declare it explicitly, as allowed by PHP.

Parameters
$event : object

The event to pass to the event handlers/listeners

Return values
object

The passed $event MUST be returned


        
On this page

Search results