Archived
1
0
Fork 0

application/Bootstrap.php: Init whoops.

This commit is contained in:
Henrik Hautakoski 2015-01-31 13:44:23 +01:00
parent 30c11df914
commit 67f6905fca

View file

@ -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)