application/Bootstrap.php: Init whoops.
This commit is contained in:
parent
30c11df914
commit
67f6905fca
1 changed files with 14 additions and 0 deletions
|
|
@ -214,6 +214,20 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
|||
|
||||
return $autoloader;
|
||||
}
|
||||
|
||||
protected function _initWhoops()
|
||||
{
|
||||
$this->bootstrap('frontController');
|
||||
|
||||
if ($this->frontController->throwExceptions()) {
|
||||
|
||||
$whoops = new Whoops\Run();
|
||||
|
||||
$whoops->pushHandler(new Whoops\Handler\PrettyPageHandler());
|
||||
|
||||
$whoops->register();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure multilanguage (translator)
|
||||
|
|
|
|||
Reference in a new issue