* deployer added

* los basepath added
This commit is contained in:
Dávid Danyi
2017-09-15 13:26:47 +02:00
parent 863e6e502b
commit 7b83e4df9b
5 changed files with 115 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
// 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: