Initial commit

This commit is contained in:
billz
2023-12-22 23:15:36 +00:00
parent 627e99b0e9
commit e93b793686
2 changed files with 67 additions and 0 deletions

10
includes/exceptions.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
require_once 'src/RaspAP/Exceptions/ExceptionHandler.php';
// Import the ExceptionHandler class
use RaspAP\Exceptions\ExceptionHandler;
set_exception_handler(['RaspAP\Exceptions\ExceptionHandler', 'handleException']);
register_shutdown_function(['RaspAP\Exceptions\ExceptionHandler', 'handleFatalError']);
?>