{
public function init(Manager $moduleManager)
{
- $events = StaticEventManager::getInstance();
- $events->attach('bootstrap', 'bootstrap', array($this, 'initializeView'), 100);
+ $events = $moduleManager->events();
+ $sharedEvents = $events->getSharedCollections();
+ $sharedEvents->attach('bootstrap', 'bootstrap', array($this, 'initializeView'), 100);
}
public function getAutoloaderConfig()
$basePath = $app->getRequest()->getBasePath();
$locator = $app->getLocator();
$renderer = $locator->get('Zend\View\Renderer\PhpRenderer');
- $renderer->plugin('url')->setRouter($app->getRouter());
- $renderer->doctype()->setDoctype('HTML5');
$renderer->plugin('basePath')->setBasePath($basePath);
}
}