private function EventDispatcher::sortListeners in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/event-dispatcher/EventDispatcher.php \Symfony\Component\EventDispatcher\EventDispatcher::sortListeners()
Sorts the internal list of listeners for the given event by priority.
Parameters
string $eventName The name of the event.:
1 call to EventDispatcher::sortListeners()
- EventDispatcher::getListeners in vendor/
symfony/ event-dispatcher/ EventDispatcher.php - Gets the listeners of a specific event or all listeners sorted by descending priority.
File
- vendor/
symfony/ event-dispatcher/ EventDispatcher.php, line 170
Class
- EventDispatcher
- The EventDispatcherInterface is the central point of Symfony's event listener system.
Namespace
Symfony\Component\EventDispatcherCode
private function sortListeners($eventName) {
$this->sorted[$eventName] = array();
krsort($this->listeners[$eventName]);
$this->sorted[$eventName] = call_user_func_array('array_merge', $this->listeners[$eventName]);
}