DispatcherAwareTrait

Defines the trait for a Dispatcher Aware Class.

since

1.2.0

package

Joomla Framework

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

DispatcherInterface

setDispatcher

Set the dispatcher to use.

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

1.2.0

Arguments

dispatcher

DispatcherInterfaceThe dispatcher to use.

Response

$this

Properties

dispatcher

Event Dispatcher

since

1.2.0

Type(s)

DispatcherInterface|null