public function setUp() { parent::setUp(); $this->viewPlugin = ViewPlugin::getInstance($this->getProfiler()); }
/** * 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; }
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())); }