2017-09-22 14:02:02 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// Application config
|
|
|
|
|
|
|
|
return [
|
|
|
|
// Service providers
|
2018-08-12 00:08:52 +02:00
|
|
|
'providers' => [
|
2018-09-05 13:40:03 +02:00
|
|
|
|
|
|
|
// Application bootstrap
|
2017-10-31 13:40:13 +01:00
|
|
|
\Engelsystem\Logger\LoggerServiceProvider::class,
|
|
|
|
\Engelsystem\Exceptions\ExceptionsServiceProvider::class,
|
|
|
|
\Engelsystem\Config\ConfigServiceProvider::class,
|
2018-09-05 13:40:03 +02:00
|
|
|
|
|
|
|
// Request handling
|
2018-08-22 03:10:08 +02:00
|
|
|
\Engelsystem\Http\UrlGeneratorServiceProvider::class,
|
2017-10-31 13:40:13 +01:00
|
|
|
\Engelsystem\Renderer\RendererServiceProvider::class,
|
|
|
|
\Engelsystem\Database\DatabaseServiceProvider::class,
|
2017-11-01 14:47:09 +01:00
|
|
|
\Engelsystem\Http\RequestServiceProvider::class,
|
|
|
|
\Engelsystem\Http\SessionServiceProvider::class,
|
2018-08-28 22:23:59 +02:00
|
|
|
\Engelsystem\Helpers\TranslationServiceProvider::class,
|
2018-01-18 19:01:34 +01:00
|
|
|
\Engelsystem\Http\ResponseServiceProvider::class,
|
|
|
|
\Engelsystem\Http\Psr7ServiceProvider::class,
|
2018-10-08 19:30:37 +02:00
|
|
|
\Engelsystem\Helpers\AuthenticatorServiceProvider::class,
|
2018-08-29 15:29:48 +02:00
|
|
|
\Engelsystem\Renderer\TwigServiceProvider::class,
|
2018-08-25 21:16:20 +02:00
|
|
|
\Engelsystem\Middleware\RouteDispatcherServiceProvider::class,
|
|
|
|
\Engelsystem\Middleware\RequestHandlerServiceProvider::class,
|
2018-09-05 13:40:03 +02:00
|
|
|
|
|
|
|
// Additional services
|
|
|
|
\Engelsystem\Mail\MailerServiceProvider::class,
|
2017-09-22 14:02:02 +02:00
|
|
|
],
|
2018-08-12 00:08:52 +02:00
|
|
|
|
|
|
|
// Application middleware
|
|
|
|
'middleware' => [
|
2018-09-05 13:40:03 +02:00
|
|
|
// Basic initialization
|
2018-08-12 00:08:52 +02:00
|
|
|
\Engelsystem\Middleware\SendResponseHandler::class,
|
|
|
|
\Engelsystem\Middleware\ExceptionHandler::class,
|
2018-09-05 13:40:03 +02:00
|
|
|
|
|
|
|
// Changes of request/response parameters
|
2018-08-28 22:23:59 +02:00
|
|
|
\Engelsystem\Middleware\SetLocale::class,
|
2018-10-27 12:11:37 +02:00
|
|
|
\Engelsystem\Middleware\AddHeaders::class,
|
2018-09-05 13:40:03 +02:00
|
|
|
|
|
|
|
// 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,
|
2018-08-25 21:16:20 +02:00
|
|
|
\Engelsystem\Middleware\RouteDispatcher::class,
|
2018-10-08 19:30:37 +02:00
|
|
|
|
|
|
|
// Handle request
|
2018-08-25 21:16:20 +02:00
|
|
|
\Engelsystem\Middleware\RequestHandler::class,
|
2018-08-12 00:08:52 +02:00
|
|
|
],
|
2017-09-22 14:02:02 +02:00
|
|
|
];
|