* basepath pipeline added

This commit is contained in:
Dávid Danyi 2017-07-31 16:34:40 +02:00
parent 8c5219956e
commit 901fb6cef0
3 changed files with 12 additions and 2 deletions

View File

@ -0,0 +1,10 @@
<?php
return [
'los_basepath' => '',
'dependencies' => [
'factories' => [
LosMiddleware\BasePath\BasePath::class => LosMiddleware\BasePath\BasePathFactory::class,
],
],
];

View File

@ -14,6 +14,7 @@ use Zend\Stratigility\Middleware\ErrorHandler;
// 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(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:

View File

@ -9,9 +9,8 @@ set('ssh_multiplexing', true);
set('repository', 'https://gogs.ragnarok.yvan.hu/TSP/taurus-api.git'); set('repository', 'https://gogs.ragnarok.yvan.hu/TSP/taurus-api.git');
set('shared_files', [ set('shared_files', [
'config/autoload/local.php', 'config/autoload/local.php',
'config/autoload/los-basepath.local.php',
// 'config/autoload/doctrine.local.php', // 'config/autoload/doctrine.local.php',
// 'config/autoload/los-basepath.local.php',
// 'config/autoload/errorhandler.local.php',
]); ]);
/* /*
set('shared_dirs', [ set('shared_dirs', [