From 901fb6cef0c9a2e9af16a206941c6069e03ec4bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Danyi?= Date: Mon, 31 Jul 2017 16:34:40 +0200 Subject: [PATCH] * basepath pipeline added --- config/autoload/los-basepath.global.php.dist | 10 ++++++++++ config/pipeline.php | 1 + deploy.php | 3 +-- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 config/autoload/los-basepath.global.php.dist diff --git a/config/autoload/los-basepath.global.php.dist b/config/autoload/los-basepath.global.php.dist new file mode 100644 index 0000000..2667a1e --- /dev/null +++ b/config/autoload/los-basepath.global.php.dist @@ -0,0 +1,10 @@ + '', + 'dependencies' => [ + 'factories' => [ + LosMiddleware\BasePath\BasePath::class => LosMiddleware\BasePath\BasePathFactory::class, + ], + ], +]; diff --git a/config/pipeline.php b/config/pipeline.php index c551918..8ebfd96 100644 --- a/config/pipeline.php +++ b/config/pipeline.php @@ -14,6 +14,7 @@ use Zend\Stratigility\Middleware\ErrorHandler; // 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(ServerUrlMiddleware::class); // Pipe more middleware here that you want to execute on every request: diff --git a/deploy.php b/deploy.php index fcd2205..7f3dddd 100644 --- a/deploy.php +++ b/deploy.php @@ -9,9 +9,8 @@ set('ssh_multiplexing', true); set('repository', 'https://gogs.ragnarok.yvan.hu/TSP/taurus-api.git'); set('shared_files', [ 'config/autoload/local.php', + 'config/autoload/los-basepath.local.php', // 'config/autoload/doctrine.local.php', -// 'config/autoload/los-basepath.local.php', -// 'config/autoload/errorhandler.local.php', ]); /* set('shared_dirs', [