Zend\Mvc\Application::getEventManager PHP Method

getEventManager() public method

Lazy-loads an EventManager instance if none registered.
public getEventManager ( ) : Zend\EventManager\EventManagerInterface
return Zend\EventManager\EventManagerInterface
    public function getEventManager()
    {
        return $this->events;
    }

Usage Example

Beispiel #1
0
 public function __construct($name = null, array $data = array(), $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->app = \Bootstrap::$app;
     $this->sm = $this->app->getServiceManager();
     $this->evm = $this->app->getEventManager();
 }
All Usage Examples Of Zend\Mvc\Application::getEventManager