You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.6 KiB
PHP
47 lines
1.6 KiB
PHP
<?php
|
|
|
|
// Application config
|
|
|
|
return [
|
|
// Service providers
|
|
'providers' => [
|
|
|
|
// Application bootstrap
|
|
\Engelsystem\Logger\LoggerServiceProvider::class,
|
|
\Engelsystem\Exceptions\ExceptionsServiceProvider::class,
|
|
\Engelsystem\Config\ConfigServiceProvider::class,
|
|
|
|
// Request handling
|
|
\Engelsystem\Http\UrlGeneratorServiceProvider::class,
|
|
\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\Renderer\TwigServiceProvider::class,
|
|
\Engelsystem\Middleware\RouteDispatcherServiceProvider::class,
|
|
\Engelsystem\Middleware\RequestHandlerServiceProvider::class,
|
|
|
|
// Additional services
|
|
\Engelsystem\Mail\MailerServiceProvider::class,
|
|
],
|
|
|
|
// Application middleware
|
|
'middleware' => [
|
|
|
|
// Basic initialization
|
|
\Engelsystem\Middleware\SendResponseHandler::class,
|
|
\Engelsystem\Middleware\ExceptionHandler::class,
|
|
|
|
// Changes of request/response parameters
|
|
\Engelsystem\Middleware\SetLocale::class,
|
|
|
|
// The application code
|
|
\Engelsystem\Middleware\ErrorHandler::class,
|
|
\Engelsystem\Middleware\RouteDispatcher::class,
|
|
\Engelsystem\Middleware\RequestHandler::class,
|
|
],
|
|
];
|