code: protected function getListeners(Event $event)
      {
          $scriptListeners = $this->getScriptListeners($event);
  
          if (!isset($this->listeners[$event->getName()][0])) {
              $this->listeners[$event->getName()][0] = array();
          }
          krsort($this->listeners[$event->getName()]);
  
          $listeners = $this->listeners;
          $listeners[$event->getName()][0] = array_merge($listeners[$event->getName()][0], $scriptListeners);
  
          return call_user_func_array('array_merge', $listeners[$event->getName()]);
      }
docs: Retrieves all listeners for a given event
  
  @param  Event $event
  @return array All listeners: callables and scripts