summaryrefslogtreecommitdiff
path: root/src/Exceptions/ExceptionsServiceProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Exceptions/ExceptionsServiceProvider.php')
-rw-r--r--src/Exceptions/ExceptionsServiceProvider.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Exceptions/ExceptionsServiceProvider.php b/src/Exceptions/ExceptionsServiceProvider.php
index 7755e1e7..8eeccf61 100644
--- a/src/Exceptions/ExceptionsServiceProvider.php
+++ b/src/Exceptions/ExceptionsServiceProvider.php
@@ -3,13 +3,14 @@
namespace Engelsystem\Exceptions;
use Engelsystem\Container\ServiceProvider;
-use Engelsystem\Exceptions\Handler as ExceptionHandler;
class ExceptionsServiceProvider extends ServiceProvider
{
public function register()
{
- $errorHandler = $this->app->make(ExceptionHandler::class);
+ $errorHandler = $this->app->make(BasicHandler::class);
+ $errorHandler->register();
$this->app->instance('error.handler', $errorHandler);
+ $this->app->bind(Handler::class, 'error.handler');
}
}