Skip to content

Commit

Permalink
Merge pull request #3 from RobertCordes/exception-hook
Browse files Browse the repository at this point in the history
Handover exception to ray
  • Loading branch information
samzzi authored Dec 10, 2021
2 parents b821fbd + b081dde commit 8f544a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@
return X\Ray::ray($this, $color);
},
],
'hooks' => [
'system.exception' => function ($exception) {
ray()->exception($exception);
},
],
]);

if (function_exists('ray') && (!option('debug') && !option('genxbe.ray.enabled'))) {
Expand Down

0 comments on commit 8f544a3

Please sign in to comment.