Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updates for ZF2 master changes

  • Loading branch information...
commit 7889d92c1550c6122119815ad673d186fee4f415 1 parent 76eb647
@EvanDotPro EvanDotPro authored
View
2  module/Application/Module.php
@@ -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);
}
View
4 module/Application/config/module.config.php
@@ -20,7 +20,7 @@
),
// 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 @@
// 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
View
4 public/index.php
@@ -13,13 +13,13 @@
$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();
Please sign in to comment.
Something went wrong with that request. Please try again.