Update zf2 submoudle and Di configuration
authorEvan Coury <me@evancoury.com>
Mon, 10 Oct 2011 17:25:51 +0000 (10:25 -0700)
committerEvan Coury <me@evancoury.com>
Mon, 10 Oct 2011 17:28:57 +0000 (10:28 -0700)
- Per updates to zf2 master, no need to explicitly disable annotations in the
runtime configuration for DI

library/ZendFramework
modules/Application/configs/module.config.php
modules/Application/src/Application/Bootstrap.php

index 31831f1..b3fac72 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 31831f1865398750695fae11a919b396add4ae5d
+Subproject commit b3fac727842db9a839fee9199c8cf61ccbc43ce8
index 8b9a28d..1d13323 100644 (file)
@@ -26,12 +26,12 @@ return array(
 
             'Zend\View\PhpRenderer' => array(
                 'parameters' => array(
-                        'resolver' => 'Zend\View\TemplatePathStack',
-                        'options'  => array(
-                            'script_paths' => array(
-                                'application' => __DIR__ . '/../views',
-                            ),
+                    'resolver' => 'Zend\View\TemplatePathStack',
+                    'options'  => array(
+                        'script_paths' => array(
+                            'application' => __DIR__ . '/../views',
                         ),
+                    ),
                     'broker' => 'Zend\View\HelperBroker',
                 ),
             ),
index 722919a..3880ade 100644 (file)
@@ -30,10 +30,12 @@ class Bootstrap
 
     protected function setupLocator(Application $app)
     {
-        $definition = new Definition\RuntimeDefinition;
-        $definition->getIntrospectionStrategy()->setUseAnnotations(false);
-        $di = new Di(new DefinitionList($definition), null, new Configuration($this->config->di));
+        $di = new Di;
         $di->instanceManager()->addTypePreference('Zend\Di\Locator', $di);
+
+        $config = new Configuration($this->config->di);
+        $config->configure($di);
+
         $app->setLocator($di);
     }