more fixes for composer use

This commit is contained in:
Joey Kimsey
2024-08-09 01:35:47 -04:00
parent e3cf6beebb
commit f80f7bed6b
2 changed files with 23 additions and 17 deletions

View File

@ -46,8 +46,8 @@ class Bedrock {
Debug::group( 'Bedrock Application' );
ob_start();
self::$activeConfig = new Config( CONFIG_JSON );
set_error_handler( [ 'TheTempusProject\\Canary\\Canary', 'handle_error' ] );
set_exception_handler( [ 'TheTempusProject\\Canary\\Canary', 'handle_exception' ] );
set_error_handler( [ BEDROCK_DEFAULT_ERROR_HANDLER, 'handle_error' ] );
set_exception_handler( [ BEDROCK_DEFAULT_EXCEPTION_HANDLER, 'handle_exception' ] );
self::$controllerName = DEFAULT_CONTROLLER_CLASS;
self::$methodName = DEFAULT_CONTROLLER_METHOD;
$this->setUrl( $url );