mirror of
https://github.com/getgrav/grav.git
synced 2025-12-05 15:29:57 +01:00
Pass the exception to the onFatalException() event
This commit is contained in:
@@ -8,6 +8,7 @@ if (!is_file($autoload)) {
|
||||
}
|
||||
|
||||
use Grav\Common\Grav;
|
||||
use RocketTheme\Toolbox\Event\Event;
|
||||
|
||||
// Register the auto-loader.
|
||||
$loader = require_once $autoload;
|
||||
@@ -36,6 +37,6 @@ $grav = Grav::instance(
|
||||
try {
|
||||
$grav->process();
|
||||
} catch (\Exception $e) {
|
||||
$grav->fireEvent('onFatalException');
|
||||
$grav->fireEvent('onFatalException', new Event(['exception' => $e]));
|
||||
throw $e;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user