diff --git a/config/autoload/local.php.dist b/config/autoload/local.php.dist index 3f4fb5d..1313041 100644 --- a/config/autoload/local.php.dist +++ b/config/autoload/local.php.dist @@ -2,8 +2,6 @@ declare(strict_types=1); -use Api\App\Entity\EntityListenerResolver; - $baseUrl = 'http://localhost:8080'; $databases = [ diff --git a/src/App/src/ConfigProvider.php b/src/App/src/ConfigProvider.php index 2c982b5..b527a11 100644 --- a/src/App/src/ConfigProvider.php +++ b/src/App/src/ConfigProvider.php @@ -11,6 +11,7 @@ use Api\App\Factory\EntityListenerResolverFactory; use Api\App\Factory\RouteListCommandFactory; use Api\App\Factory\TokenGenerateCommandFactory; +use Api\App\Handler\ErrorReportHandler; use Api\App\Handler\HomeHandler; use Api\App\Middleware\AuthenticationMiddleware; use Api\App\Middleware\AuthorizationMiddleware; @@ -70,6 +71,7 @@ public function getDependencies(): array TwigExtension::class => TwigExtensionFactory::class, TwigRenderer::class => TwigRendererFactory::class, HomeHandler::class => AttributedServiceFactory::class, + ErrorReportHandler::class => AttributedServiceFactory::class, ErrorResponseMiddleware::class => AttributedServiceFactory::class, RouteListCommand::class => RouteListCommandFactory::class, TokenGenerateCommand::class => TokenGenerateCommandFactory::class,