public function get($eventType)
    {
        $handlers = array_merge_recursive(
            array_key_exists($eventType, $this->handlers) ? $this->handlers[$eventType] : [],
            array_key_exists('*', $this->handlers) ? $this->handlers['*'] : []
        );


        krsort($handlers, SORT_NUMERIC);

        $eventHandlers = [];
        foreach ($handlers as $priority => $handlersByPriority) {
            foreach ($handlersByPriority as $handler) {
                if ($this->resolver) {
                    $handler = call_user_func($this->resolver, $handler, $eventType);
                }

                $eventHandlers[] = $handler;
            }
        }

        return $eventHandlers;
    }
public function get($eventType)
    {
        $handlers = array_merge_recursive(
            array_key_exists($eventType, $this->handlers) ? $this->handlers[$eventType] : [],
            array_key_exists('*', $this->handlers) ? $this->handlers['*'] : []
        );


        krsort($handlers, SORT_NUMERIC);

        $eventHandlers = [];
        foreach ($handlers as $priority => $handlersByPriority) {
            foreach ($handlersByPriority as $handler) {
                if ($this->resolver) {
                    $handler = call_user_func($this->resolver, $handler, $eventType);
                }

                $eventHandlers[] = $handler;
            }
        }

        return $eventHandlers;
    }
public function get ( $ eventType ) { $ handlers = array_merge_recursive ( array_key_exists ( $ eventType , $ this -> handlers ) ? $ this -> handlers [ $ eventType ] : [ ] , array_key_exists ( '*' , $ this -> handlers ) ? $ this -> handlers [ '*' ] : [ ] ) ; krsort ( $ handlers , SORT_NUMERIC ) ; $ eventHandlers = [ ] ; foreach ( $ handlers as $ priority => $ handlersByPriority ) { foreach ( $ handlersByPriority as $ handler ) { if ( $ this -> resolver ) { $ handler = call_user_func ( $ this -> resolver , $ handler , $ eventType ) ; } $ eventHandlers [ ] = $ handler ; } } return $ eventHandlers ; }
Returns an array of event handlers sorted by priority from highest to lowest

@param string $eventType
@return callable[]
Returns an array of event handlers sorted by priority from highest to lowest