zend-expressive-test/config/config.php

22 lines
572 B
PHP
Raw Permalink Normal View History

2016-10-25 09:38:41 +02:00
<?php return new ArrayObject([
'middleware_pipeline' => [
Zend\Expressive\Container\ApplicationFactory::ROUTING_MIDDLEWARE,
['middleware' => Zend\Expressive\Helper\UrlHelperMiddleware::class],
Zend\Expressive\Container\ApplicationFactory::DISPATCH_MIDDLEWARE,
],
'routes' => [
[
'path' => '/',
'middleware' => Test\App\HomeAction::class,
'allowed_methods' => [ 'GET' ],
'name' => 'home',
],
[
'path' => '/test/another/path',
'middleware' => Test\App\HomeAction::class,
'allowed_methods' => [ 'GET' ],
'name' => 'other',
],
],
2016-10-25 09:38:41 +02:00
]);