function EventDispatcher::pushEvent
Push an event to the stack of active event
Throws
\RuntimeException
1 call to EventDispatcher::pushEvent()
- EventDispatcher::doDispatch in vendor/
composer/ composer/ src/ Composer/ EventDispatcher/ EventDispatcher.php - Triggers the listeners of an event.
File
-
vendor/
composer/ composer/ src/ Composer/ EventDispatcher/ EventDispatcher.php, line 636
Class
- EventDispatcher
- The Event Dispatcher.
Namespace
Composer\EventDispatcherCode
protected function pushEvent(Event $event) : int {
$eventName = $event->getName();
if (in_array($eventName, $this->eventStack)) {
throw new \RuntimeException(sprintf("Circular call to script handler '%s' detected", $eventName));
}
return array_push($this->eventStack, $eventName);
}