1
0

Output contents of $serendipity on Exception.

This commit is contained in:
2022-02-14 21:44:20 +01:00
parent 7e8dcb0cb6
commit 5bd24c2d12

View File

@@ -6,6 +6,11 @@
require_once __DIR__ . '/../vendor/autoload.php';
// 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->pushHandler(new \Whoops\Handler\PrettyPageHandler());
$whoops->pushHandler($whoops_handler);
$whoops->register();