From ac504ae9daeb108e4e4751e7bf4ff18dfece94fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Danyi?= Date: Fri, 20 Apr 2018 13:32:26 +0200 Subject: [PATCH] * basepath middleware fixed --- config/autoload/los-basepath.global.php | 2 +- config/pipeline.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/autoload/los-basepath.global.php b/config/autoload/los-basepath.global.php index bd679b8..07651a0 100644 --- a/config/autoload/los-basepath.global.php +++ b/config/autoload/los-basepath.global.php @@ -3,7 +3,7 @@ return [ 'dependencies' => [ 'factories' => [ - LosMiddleware\BasePath\BasePath::class => LosMiddleware\BasePath\BasePathFactory::class, + LosMiddleware\BasePath\BasePathMiddleware::class => LosMiddleware\BasePath\BasePathMiddlewareFactory::class, ], ], ]; diff --git a/config/pipeline.php b/config/pipeline.php index 8ba2e9d..cdc8054 100644 --- a/config/pipeline.php +++ b/config/pipeline.php @@ -23,7 +23,7 @@ return function (Application $app, MiddlewareFactory $factory, ContainerInterfac // The error handler should be the first (most outer) middleware to catch // all Exceptions. $app->pipe(ErrorHandler::class); - $app->pipe(LosMiddleware\BasePath\BasePath::class); + $app->pipe(LosMiddleware\BasePath\BasePathMiddleware::class); $app->pipe(ServerUrlMiddleware::class); // Pipe more middleware here that you want to execute on every request: