Class EventPropagator
The generic event propagator implementation.
-
DcGeneral\Event\EventPropagator
implements
DcGeneral\Event\EventPropagatorInterface
Methods summary
public
|
#
__construct( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher )
Create a new instance.
Parameters
- $dispatcher
Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher The event dispatcher to attach.
|
public
Symfony\Component\EventDispatcher\Event
|
#
propagate( string $eventName, Symfony\Component\EventDispatcher\Event $event = null, string[] $suffixes = array() )
Propagate an event to the defined event dispatcher.
Propagate an event to the defined event dispatcher.
Parameters
- $eventName
string $eventName The event name of the event to propagate.
- $event
Symfony\Component\EventDispatcher\Event $event The Event to propagate (optional).
- $suffixes
string[] $suffixes Suffixes to attach to the event.
Returns
Symfony\Component\EventDispatcher\Event
Implementation of
|
public
Symfony\Component\EventDispatcher\Event
|
#
propagateExact( string $eventName, Symfony\Component\EventDispatcher\Event $event = null, string[] $suffixes = array() )
Propagate an event to the defined event dispatcher.
Propagate an event to the defined event dispatcher.
Parameters
- $eventName
string $eventName The event name of the event to propagate.
- $event
Symfony\Component\EventDispatcher\Event $event The Event to propagate.
- $suffixes
string[] $suffixes Suffixes to attach to the event.
Returns
Symfony\Component\EventDispatcher\Event
Implementation of
|
Properties summary
protected
Symfony\Component\EventDispatcher\EventDispatcherInterface
|
$dispatcher
|
|
#
The attached event dispatcher.
The attached event dispatcher.
|