DelegatingDispatcher

Implements \Joomla\Event\DispatcherInterface

A dispatcher delegating its methods to an other dispatcher.

final
since

1.0

Methods

__construct

Constructor.

__construct(\Joomla\Event\DispatcherInterface $dispatcher) 
since

1.0

Arguments

$dispatcher

\Joomla\Event\DispatcherInterfaceThe delegated dispatcher.

triggerEvent

Trigger an event.

triggerEvent(\Joomla\Event\EventInterface|string $event) : \Joomla\Event\EventInterface
since

1.0

Arguments

$event

\Joomla\Event\EventInterface|stringThe event object or name.

Response

\Joomla\Event\EventInterfaceThe event after being passed through all listeners.

Properties

dispatcher

The delegated dispatcher.