mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Move set_exception_handler to constructor
This commit is contained in:
parent
36a6572971
commit
adf44d462b
@ -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…
x
Reference in New Issue
Block a user