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\TemplatePathStack',
35 'Zend\View\Resolver\TemplatePathStack' => array(
36 'parameters' => array(
38 'application' => __DIR__ . '/../view',
42 'Zend\View\Renderer\PhpRenderer' => array(
43 'parameters' => array(
44 'resolver' => 'Zend\View\Resolver\AggregateResolver',
47 'Zend\Mvc\View\DefaultRenderingStrategy' => array(
48 'parameters' => array(
49 'baseTemplate' => 'layout/layout',
52 'Zend\Mvc\View\ExceptionStrategy' => array(
53 'parameters' => array(
54 'displayExceptions' => true,
55 'template' => 'error/index',
58 'Zend\Mvc\View\RouteNotFoundStrategy' => array(
59 'parameters' => array(
60 'notFoundTemplate' => 'error/404',
64 // Setup the router and routes
65 'Zend\Mvc\Router\RouteStack' => array(
66 'parameters' => array(
69 'type' => 'Zend\Mvc\Router\Http\Segment',
71 'route' => '/[:controller[/:action]]',
72 'constraints' => array(
73 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
74 'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
77 'controller' => 'Application\Controller\IndexController',
83 'type' => 'Zend\Mvc\Router\Http\Literal',
87 'controller' => 'Application\Controller\IndexController',