engelsystem/config/app.php

49 lines
1.7 KiB
PHP
Raw Normal View History

<?php
// Application config
return [
// Service providers
2018-08-12 00:08:52 +02:00
'providers' => [
// Application bootstrap
2017-10-31 13:40:13 +01:00
\Engelsystem\Logger\LoggerServiceProvider::class,
\Engelsystem\Exceptions\ExceptionsServiceProvider::class,
\Engelsystem\Config\ConfigServiceProvider::class,
// Request handling
\Engelsystem\Http\UrlGeneratorServiceProvider::class,
2017-10-31 13:40:13 +01:00
\Engelsystem\Renderer\RendererServiceProvider::class,
\Engelsystem\Database\DatabaseServiceProvider::class,
\Engelsystem\Http\RequestServiceProvider::class,
\Engelsystem\Http\SessionServiceProvider::class,
\Engelsystem\Helpers\TranslationServiceProvider::class,
\Engelsystem\Http\ResponseServiceProvider::class,
\Engelsystem\Http\Psr7ServiceProvider::class,
\Engelsystem\Helpers\AuthenticatorServiceProvider::class,
\Engelsystem\Renderer\TwigServiceProvider::class,
\Engelsystem\Middleware\RouteDispatcherServiceProvider::class,
\Engelsystem\Middleware\RequestHandlerServiceProvider::class,
// Additional services
\Engelsystem\Mail\MailerServiceProvider::class,
],
2018-08-12 00:08:52 +02:00
// Application middleware
'middleware' => [
// Basic initialization
2018-08-12 00:08:52 +02:00
\Engelsystem\Middleware\SendResponseHandler::class,
\Engelsystem\Middleware\ExceptionHandler::class,
// Changes of request/response parameters
\Engelsystem\Middleware\SetLocale::class,
// The application code
2018-08-29 13:58:50 +02:00
\Engelsystem\Middleware\ErrorHandler::class,
\Engelsystem\Middleware\RouteDispatcher::class,
// Handle request
\Engelsystem\Middleware\RequestHandler::class,
2018-08-12 00:08:52 +02:00
],
];