src/Application/Bootstrap.php
public function getEventsManager() {
    if (!is_object(parent::getEventsManager())) {
      $em = $this->getUserOption('eventsManager');
      if (!is_object($em)) {
        $em = new EventsManager();
      }
      $em->enablePriorities(true);
      $this->setEventsManager($em);
    }
    return parent::getEventsManager();
  }
public function getEventsManager() {
    if (!is_object(parent::getEventsManager())) {
      $em = $this->getUserOption('eventsManager');
      if (!is_object($em)) {
        $em = new EventsManager();
      }
      $em->enablePriorities(true);
      $this->setEventsManager($em);
    }
    return parent::getEventsManager();
  }
public function getEventsManager ( ) { if ( ! is_object ( parent :: getEventsManager ( ) ) ) { $ em = $ this -> getUserOption ( 'eventsManager' ) ; if ( ! is_object ( $ em ) ) { $ em = new EventsManager ( ) ; } $ em -> enablePriorities ( true ) ; $ this -> setEventsManager ( $ em ) ; } return parent :: getEventsManager ( ) ; }
Returns the internal event manager

@return \Phalcon\Events\ManagerInterface
Returns the internal event manager