DispatcherAwareTrait

Defines the trait for a Dispatcher Aware Class.

since

1.2.0

Methods

getDispatcher

Get the event dispatcher.

getDispatcher() : \Joomla\Event\DispatcherInterface
since

1.2.0

throws

\UnexpectedValueExceptionMay be thrown if the dispatcher has not been set.

Response

\Joomla\Event\DispatcherInterface

setDispatcher

Set the dispatcher to use.

setDispatcher(\Joomla\Event\DispatcherInterface $dispatcher) : $this
since

1.2.0

Arguments

$dispatcher

\Joomla\Event\DispatcherInterfaceThe dispatcher to use.

Response

$this

Properties

dispatcher

Event Dispatcher

since

1.2.0

Type(s)

\Joomla\Event\DispatcherInterface