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.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Exceptions/ExceptionsServiceProvider.php b/src/Exceptions/ExceptionsServiceProvider.php
new file mode 100644
index 00000000..7755e1e7
--- /dev/null
+++ b/src/Exceptions/ExceptionsServiceProvider.php
@@ -0,0 +1,15 @@
+<?php
+
+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);
+ $this->app->instance('error.handler', $errorHandler);
+ }
+}