mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 15:10:22 +00:00
Move set_exception_handler to constructor
This commit is contained in:
parent
36a6572971
commit
adf44d462b
1 changed files with 1 additions and 5 deletions
|
@ -1,10 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
require_once 'src/RaspAP/Exceptions/ExceptionHandler.php';
|
require_once 'src/RaspAP/Exceptions/ExceptionHandler.php';
|
||||||
|
|
||||||
// Import the ExceptionHandler class
|
$handler = new RaspAP\Exceptions\ExceptionHandler;
|
||||||
use RaspAP\Exceptions\ExceptionHandler;
|
|
||||||
|
|
||||||
set_exception_handler(['RaspAP\Exceptions\ExceptionHandler', 'handleException']);
|
|
||||||
register_shutdown_function(['RaspAP\Exceptions\ExceptionHandler', 'handleFatalError']);
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue