Whoops error handler for debug users.

This commit is contained in:
Yuriy Pikhtarev 2017-06-08 23:20:50 +03:00
commit 9755e8b775
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
2 changed files with 10 additions and 0 deletions

View file

@ -108,6 +108,15 @@ define('TOR_TYPE_SILVER', 2);
define('GUEST_UID', -1);
define('BOT_UID', -746);
/**
* Whoops error handler
*/
if (DBG_USER) {
$whoops = new \Whoops\Run;
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
$whoops->register();
}
/**
* Database
*/

View file

@ -37,6 +37,7 @@
"require": {
"php": "^5.5 || ^7.0",
"bugsnag/bugsnag": "^3.0",
"filp/whoops": "^2.1",
"gigablah/sphinxphp": "^2.0",
"google/recaptcha": "^1.0",
"longman/ip-tools": "^1.2",