Updates for ZF2 master changes
authorEvan Coury <me@evancoury.com>
Mon, 7 May 2012 20:43:50 +0000 (13:43 -0700)
committerEvan Coury <me@evancoury.com>
Mon, 7 May 2012 20:43:50 +0000 (13:43 -0700)
module/Application/Module.php
module/Application/config/module.config.php
public/index.php

index a540a11..5f93426 100644 (file)
@@ -11,7 +11,7 @@ class Module implements AutoloaderProvider
     public function init(Manager $moduleManager)
     {
         $events       = $moduleManager->events();
-        $sharedEvents = $events->getSharedCollections();
+        $sharedEvents = $events->getSharedManager();
         $sharedEvents->attach('bootstrap', 'bootstrap', array($this, 'initializeView'), 100);
     }
 
index 7321cde..6a300aa 100644 (file)
@@ -20,7 +20,7 @@ return array(
             ),
 
             // Setup for router and routes
-            'Zend\Mvc\Router\RouteStack' => array(
+            'Zend\Mvc\Router\RouteStackInterface' => array(
                 'parameters' => array(
                     'routes' => array(
                         'default' => array(
@@ -95,7 +95,7 @@ return array(
             // Injecting the router into the url helper
             'Zend\View\Helper\Url' => array(
                 'parameters' => array(
-                    'router' => 'Zend\Mvc\Router\RouteStack',
+                    'router' => 'Zend\Mvc\Router\RouteStackInterface',
                 ),
             ),
             // Configuration for the doctype helper
index 6c1ddb7..edd629b 100644 (file)
@@ -13,13 +13,13 @@ $defaultListeners->getConfigListener()->addConfigGlobPath("config/autoload/*.php
 
 $moduleManager = new Zend\Module\Manager($appConfig['modules']);
 $events        = $moduleManager->events();
-$events->setSharedCollections($sharedEvents);
+$events->setSharedManager($sharedEvents);
 $events->attach($defaultListeners);
 $moduleManager->loadModules();
 
 // Create application, bootstrap, and run
 $bootstrap   = new Zend\Mvc\Bootstrap($defaultListeners->getConfigListener()->getMergedConfig());
-$bootstrap->events()->setSharedCollections($sharedEvents);
+$bootstrap->events()->setSharedManager($sharedEvents);
 $application = new Zend\Mvc\Application;
 $bootstrap->bootstrap($application);
 $application->run()->send();