Output contents of $serendipity on Exception.
This commit is contained in:
parent
7e8dcb0cb6
commit
5bd24c2d12
@ -6,6 +6,11 @@
|
|||||||
require_once __DIR__ . '/../vendor/autoload.php';
|
require_once __DIR__ . '/../vendor/autoload.php';
|
||||||
|
|
||||||
// TODO: REMOVE WHEN DONE DEVELOPING
|
// TODO: REMOVE WHEN DONE DEVELOPING
|
||||||
|
$whoops_handler = new \Whoops\Handler\PrettyPageHandler();
|
||||||
|
$whoops_handler->addDataTableCallback('$serendipity', function () {
|
||||||
|
global $serendipity;
|
||||||
|
return $serendipity;
|
||||||
|
});
|
||||||
$whoops = new \Whoops\Run();
|
$whoops = new \Whoops\Run();
|
||||||
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler());
|
$whoops->pushHandler($whoops_handler);
|
||||||
$whoops->register();
|
$whoops->register();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user