singleton( /** @phpstan-ignore-next-line */ Illuminate\Contracts\Http\Kernel::class, App\Http\Kernel::class ); $app->singleton( /** @phpstan-ignore-next-line */ Illuminate\Contracts\Console\Kernel::class, App\Console\Kernel::class ); /* |-------------------------------------------------------------------------- | RSX Exception Handler (DO NOT MODIFY) |-------------------------------------------------------------------------- | | This registers the RSX framework's extensible exception handler system. | DO NOT modify this registration - it should remain pointed at | Rsx_ExceptionHandler in all RSX projects. | | TO ADD CUSTOM EXCEPTION HANDLERS: | Register them in config/rsx.php under 'exception_handlers' array. | | EXAMPLE: | 'exception_handlers' => [ | \App\MyApp\My_Custom_ExceptionHandler::class, // Your handler | \App\RSpade\Core\Exceptions\Cli_ExceptionHandler::class, | // ... framework handlers | ] | | FOR MORE INFORMATION: | - Base class: app/RSpade/Core/Exceptions/Rsx_Exception_Handler_Abstract.php | - Main handler: app/RSpade/Core/Exceptions/Rsx_Exception_Handler.php | - Config: config/rsx.php (search for 'exception_handlers') | - Example handlers: | - app/RSpade/Core/Exceptions/Cli_Exception_Handler.php | - app/RSpade/Core/Exceptions/Ajax_Exception_Handler.php | - app/RSpade/Core/Debug/Playwright_Exception_Handler.php | - app/RSpade/Core/Providers/Rsx_Dispatch_Bootstrapper_Handler.php | */ $app->singleton( /** @phpstan-ignore-next-line */ Illuminate\Contracts\Debug\ExceptionHandler::class, App\RSpade\Core\Exceptions\Rsx_Exception_Handler::class ); /* |-------------------------------------------------------------------------- | Return The Application |-------------------------------------------------------------------------- | | This script returns the application instance. The instance is given to | the calling script so we can separate the building of the instances | from the actual running of the application and sending responses. | */ return $app;