summaryrefslogtreecommitdiff
path: root/config/app.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-08-12 00:08:52 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2018-08-19 13:59:57 +0200
commit18fd73a899602a473044013854a354254062ebd4 (patch)
treea5202fe90c8d08e3c7c06579a55074160e7d5463 /config/app.php
parentf3b3b6683ca90b70ec4d4daae002dc0caac9ebdd (diff)
Moved middleware to application config
Diffstat (limited to 'config/app.php')
-rw-r--r--config/app.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/config/app.php b/config/app.php
index 480b19d4..bb405fde 100644
--- a/config/app.php
+++ b/config/app.php
@@ -4,7 +4,7 @@
return [
// Service providers
- 'providers' => [
+ 'providers' => [
\Engelsystem\Logger\LoggerServiceProvider::class,
\Engelsystem\Exceptions\ExceptionsServiceProvider::class,
\Engelsystem\Config\ConfigServiceProvider::class,
@@ -16,4 +16,12 @@ return [
\Engelsystem\Http\ResponseServiceProvider::class,
\Engelsystem\Http\Psr7ServiceProvider::class,
],
+
+ // Application middleware
+ 'middleware' => [
+ \Engelsystem\Middleware\SendResponseHandler::class,
+ \Engelsystem\Middleware\ExceptionHandler::class,
+ \Engelsystem\Middleware\LegacyMiddleware::class,
+ \Engelsystem\Middleware\NotFoundResponse::class,
+ ],
];