From 391bf3ec72a0468a0fb9ab2b7a424038ee6fcf4b Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Mon, 15 Aug 2011 19:53:03 +0000 Subject: [PATCH] Instantiation WsDebug --- application/Bootstrap.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/application/Bootstrap.php b/application/Bootstrap.php index 8a920baf..96a92a1d 100644 --- a/application/Bootstrap.php +++ b/application/Bootstrap.php @@ -146,6 +146,24 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap return $router; } + + protected function _initWsDebug() + { + $autoloader = Zend_Loader_Autoloader::getInstance(); + $autoloader->registerNamespace('WsDebug'); + + $options = array( + 'plugins' => array( + 'Exception', + ), + ); + + $debug = new WsDebug_Controller_Plugin_Debug($options); + + $this->bootstrap('frontController'); + $frontController = $this->getResource('frontController'); + $frontController->registerPlugin($debug); + } }