2016-04-10 02:38:07 -05:00
|
|
|
<?php
|
2016-04-30 11:14:43 -05:00
|
|
|
use Acelaya\UrlShortener\Middleware\CliParamsMiddleware;
|
2016-04-10 02:38:07 -05:00
|
|
|
use Zend\Expressive\Container\ApplicationFactory;
|
|
|
|
use Zend\Expressive\Helper;
|
|
|
|
|
|
|
|
return [
|
2016-04-17 12:34:16 -05:00
|
|
|
|
2016-04-10 02:38:07 -05:00
|
|
|
'middleware_pipeline' => [
|
|
|
|
'always' => [
|
|
|
|
'middleware' => [
|
|
|
|
Helper\ServerUrlMiddleware::class,
|
|
|
|
],
|
|
|
|
'priority' => 10000,
|
|
|
|
],
|
|
|
|
|
|
|
|
'routing' => [
|
|
|
|
'middleware' => [
|
|
|
|
ApplicationFactory::ROUTING_MIDDLEWARE,
|
2016-04-30 11:14:43 -05:00
|
|
|
CliParamsMiddleware::class,
|
2016-04-10 02:38:07 -05:00
|
|
|
Helper\UrlHelperMiddleware::class,
|
|
|
|
ApplicationFactory::DISPATCH_MIDDLEWARE,
|
|
|
|
],
|
|
|
|
'priority' => 1,
|
|
|
|
],
|
|
|
|
|
|
|
|
'error' => [
|
|
|
|
'middleware' => [],
|
|
|
|
'error' => true,
|
|
|
|
'priority' => -10000,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
];
|