Skip to content

Commit

Permalink
Remove error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Sep 22, 2021
1 parent 7edf4d7 commit 03d8986
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 43 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"slim/slim": "^4",
"symfony/cache": "^5.3",
"symfony/console": "^5",
"symfony/error-handler": "^5.3",
"symfony/polyfill-uuid": "^1.22",
"symfony/yaml": "^5.2",
"tuupola/slim-basic-auth": "^3.3"
Expand Down
8 changes: 0 additions & 8 deletions config/container.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use App\Factory\LoggerFactory;
use App\Handler\DefaultErrorHandler;
use App\Middleware\ShutdownMiddleware;
use Cake\Database\Connection;
use Nyholm\Psr7\Factory\Psr17Factory;
use Psr\Container\ContainerInterface;
Expand Down Expand Up @@ -122,13 +121,6 @@
return $errorMiddleware;
},

ShutdownMiddleware::class => function (ContainerInterface $container) {
$settings = $container->get('settings')['error'];
$errorHandler = $container->get(DefaultErrorHandler::class);

return new ShutdownMiddleware($errorHandler, (bool)$settings['display_error_details']);
},

Application::class => function (ContainerInterface $container) {
$application = new Application();

Expand Down
2 changes: 0 additions & 2 deletions config/middleware.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

use App\Middleware\ErrorHandlerMiddleware;
use Selective\BasePath\BasePathMiddleware;
use Selective\Validation\Middleware\ValidationExceptionMiddleware;
use Slim\App;
Expand All @@ -11,6 +10,5 @@
$app->add(ValidationExceptionMiddleware::class);
$app->addRoutingMiddleware();
$app->add(BasePathMiddleware::class);
$app->add(ErrorHandlerMiddleware::class);
$app->add(ErrorMiddleware::class);
};
32 changes: 0 additions & 32 deletions src/Middleware/ErrorHandlerMiddleware.php

This file was deleted.

Empty file added src/Middleware/empty
Empty file.

0 comments on commit 03d8986

Please sign in to comment.