Zend\Mvc\Application::getEventManager PHP 메소드

getEventManager() 공개 메소드

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

Usage Example

예제 #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