* basepath middleware fixed

This commit is contained in:
Dávid Danyi 2018-04-20 13:32:26 +02:00
parent 2a08e41d74
commit ac504ae9da
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
return [ return [
'dependencies' => [ 'dependencies' => [
'factories' => [ 'factories' => [
LosMiddleware\BasePath\BasePath::class => LosMiddleware\BasePath\BasePathFactory::class, LosMiddleware\BasePath\BasePathMiddleware::class => LosMiddleware\BasePath\BasePathMiddlewareFactory::class,
], ],
], ],
]; ];

View File

@ -23,7 +23,7 @@ return function (Application $app, MiddlewareFactory $factory, ContainerInterfac
// The error handler should be the first (most outer) middleware to catch // The error handler should be the first (most outer) middleware to catch
// all Exceptions. // all Exceptions.
$app->pipe(ErrorHandler::class); $app->pipe(ErrorHandler::class);
$app->pipe(LosMiddleware\BasePath\BasePath::class); $app->pipe(LosMiddleware\BasePath\BasePathMiddleware::class);
$app->pipe(ServerUrlMiddleware::class); $app->pipe(ServerUrlMiddleware::class);
// Pipe more middleware here that you want to execute on every request: // Pipe more middleware here that you want to execute on every request: