示例#1
0
 public function setUp()
 {
     parent::setUp();
     $this->viewPlugin = ViewPlugin::getInstance($this->getProfiler());
 }
示例#2
0
 /**
  * Register ViewPlugin in common event manager
  *
  * We can not get the potentially custom events manager from the view, as the view is set up during
  * application and module bootstrapping. It does not exist before $application->handle()
  *
  * @return bool
  */
 public function registerView()
 {
     $this->eventsManager->attach('view', ViewPlugin::getInstance($this->getProfiler()));
     return true;
 }
示例#3
0
 public function register()
 {
     $this->eventsManager->attach('dispatch', DispatcherPlugin::getInstance($this->getProfiler()));
     $this->eventsManager->attach('view', ViewPlugin::getInstance($this->getProfiler()));
     $this->eventsManager->attach('db', AdapterPlugin::getInstance($this->getProfiler()));
 }