public function init(Manager $moduleManager)
{
$events = $moduleManager->events();
- $sharedEvents = $events->getSharedCollections();
+ $sharedEvents = $events->getSharedManager();
$sharedEvents->attach('bootstrap', 'bootstrap', array($this, 'initializeView'), 100);
}
),
// Setup for router and routes
- 'Zend\Mvc\Router\RouteStack' => array(
+ 'Zend\Mvc\Router\RouteStackInterface' => array(
'parameters' => array(
'routes' => array(
'default' => 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
$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();