コード例 #1
0
ファイル: Phalcon.php プロジェクト: dez-php/prophiler
 /**
  * Register DispatcherPlugin in "dispatcher" event manager
  *
  * @return bool
  */
 public function registerDispatcher()
 {
     if ($this->ensureEventsManager($this->dispatcher)) {
         $this->dispatcher->getEventsManager()->attach('dispatch', DispatcherPlugin::getInstance($this->getProfiler()));
         return true;
     }
     return false;
 }
コード例 #2
0
ファイル: Phalcon.php プロジェクト: tresemece/monte
 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()));
 }
コード例 #3
0
 public function setUp()
 {
     parent::setUp();
     $this->dispatcherPlugin = DispatcherPlugin::getInstance($this->getProfiler());
 }