trait Event { /**
* Trigger an event.
*
* @param string $sEvent The event name
*
* @return void
*/ public function triggerEvent($sEvent)
{ JaxonContainer::getInstance()->getEventDispatcher()->dispatch($sEvent);
}
/**
* Return an array of events to listen to.
*
* This is the default implementation on the EventListener interface.
*
* @return array An empty array
*/ public function getEvents()
{
return [];
}
/**
* Return an array of events to listen to.
*
* This is the implementation of the Lemon\Event\EventSubscriberInterface interface.
*
* @return array The event names to listen to
*/ public function getSubscribedEvents()
{
return $this->getEvents();
}
}