engelsystem/config/app.php

53 lines
1.9 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\Translation\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,
\Engelsystem\Middleware\SessionHandlerServiceProvider::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,
2018-10-27 12:11:37 +02:00
\Engelsystem\Middleware\AddHeaders::class,
// The application code
2018-08-29 13:58:50 +02:00
\Engelsystem\Middleware\ErrorHandler::class,
2018-09-03 16:33:13 +02:00
\Engelsystem\Middleware\VerifyCsrfToken::class,
\Engelsystem\Middleware\RouteDispatcher::class,
\Engelsystem\Middleware\SessionHandler::class,
// Handle request
\Engelsystem\Middleware\RequestHandler::class,
2018-08-12 00:08:52 +02:00
],
];