Moved the RouteStack di class definition into the module config.
authorDavid Hazel <dhazel@gmail.com>
Fri, 17 Feb 2012 15:51:27 +0000 (07:51 -0800)
committerMatthew Weier O'Phinney <matthew@zend.com>
Tue, 21 Feb 2012 19:28:47 +0000 (13:28 -0600)
The definition originally was in Mvc\Bootstrap::setLocator.

It would be better to leave the definition in Bootstrap, and simply set
a "preference" value in the config, but the definition *appears* to
override the preference settings.

module/Application/config/module.config.php

index 8b7ba54..2ae21f0 100644 (file)
@@ -1,6 +1,16 @@
 <?php
 return array(
     'di' => array(
+        'definition' => array(
+            'class' => array(
+                'Zend\Mvc\Router\RouteStack' => array(
+                    'instantiator' => array(
+                        'Zend\Mvc\Router\Http\TreeRouteStack',
+                        'factory'
+                    ),
+                ),
+            ),
+        ),
         'instance' => array(
             // Inject the plugin broker for controller plugins into
             // the action controller for use by all controllers that