6 'Zend\Mvc\Router\RouteStack' => array(
7 'instantiator' => array(
8 'Zend\Mvc\Router\Http\TreeRouteStack',
15 // Inject the plugin broker for controller plugins into
16 // the action controller for use by all controllers that
18 'Zend\Mvc\Controller\ActionController' => array(
19 'parameters' => array(
20 'broker' => 'Zend\Mvc\Controller\PluginBroker',
23 'Zend\Mvc\Controller\PluginBroker' => array(
24 'parameters' => array(
25 'loader' => 'Zend\Mvc\Controller\PluginLoader',
29 // Setup the View layer
30 'Zend\View\Resolver\AggregateResolver' => array(
31 'injections' => array(
32 'Zend\View\Resolver\TemplateMapResolver',
33 'Zend\View\Resolver\TemplatePathStack',
36 'Zend\View\Resolver\TemplateMapResolver' => array(
37 'parameters' => array(
39 'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
43 'Zend\View\Resolver\TemplatePathStack' => array(
44 'parameters' => array(
46 'application' => __DIR__ . '/../view',
50 'Zend\View\Renderer\PhpRenderer' => array(
51 'parameters' => array(
52 'resolver' => 'Zend\View\Resolver\AggregateResolver',
55 'Zend\Mvc\View\DefaultRenderingStrategy' => array(
56 'parameters' => array(
57 'baseTemplate' => 'layout/layout',
60 'Zend\Mvc\View\ExceptionStrategy' => array(
61 'parameters' => array(
62 'displayExceptions' => true,
63 'template' => 'error/index',
66 'Zend\Mvc\View\RouteNotFoundStrategy' => array(
67 'parameters' => array(
68 'notFoundTemplate' => 'error/404',
69 'displayNotFoundReason' => true,
73 // Setup the router and routes
74 'Zend\Mvc\Router\RouteStack' => array(
75 'parameters' => array(
78 'type' => 'Zend\Mvc\Router\Http\Segment',
80 'route' => '/[:controller[/:action]]',
81 'constraints' => array(
82 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
83 'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
86 'controller' => 'Application\Controller\IndexController',
92 'type' => 'Zend\Mvc\Router\Http\Literal',
96 'controller' => 'Application\Controller\IndexController',