protected function listenerEvents(
        ListenerInterface $listener
    )/*# : array */ {
        $result = [];
        foreach ($listener->eventsListening() as $eventName => $data) {
            $newData = $this->expandToHandler($data);
            foreach ($newData as $handler) {
                $result[] = $this->expandWithPriority(
                    $listener,
                    $eventName,
                    $handler
                );
            }
        }
        return $result;
    }
protected function listenerEvents(
        ListenerInterface $listener
    )/*# : array */ {
        $result = [];
        foreach ($listener->eventsListening() as $eventName => $data) {
            $newData = $this->expandToHandler($data);
            foreach ($newData as $handler) {
                $result[] = $this->expandWithPriority(
                    $listener,
                    $eventName,
                    $handler
                );
            }
        }
        return $result;
    }
protected function listenerEvents ( ListenerInterface $ listener ) /*# : array */ { $ result = [ ] ; foreach ( $ listener -> eventsListening ( ) as $ eventName => $ data ) { $ newData = $ this -> expandToHandler ( $ data ) ; foreach ( $ newData as $ handler ) { $ result [ ] = $ this -> expandWithPriority ( $ listener , $ eventName , $ handler ) ; } } return $ result ; }
standardize events definition

@param  ListenerInterface $listener
@return array
@access protected
standardize events definition