X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=module%2FApplication%2FModule.php;h=5f9342686cc52d54e6f3cbb85ca4faaea28782e2;hb=7889d92c1550c6122119815ad673d186fee4f415;hp=75282d944d5e5cadb7a0120411c0feedafb13d72;hpb=82e1583b730b78b0d14e76956ef3c99f65eaf12e;p=zf2.biz%2Fapplication_blanche.git diff --git a/module/Application/Module.php b/module/Application/Module.php index 75282d9..5f93426 100644 --- a/module/Application/Module.php +++ b/module/Application/Module.php @@ -8,13 +8,11 @@ use Zend\Module\Manager, class Module implements AutoloaderProvider { - protected $view; - protected $viewListener; - public function init(Manager $moduleManager) { - $events = StaticEventManager::getInstance(); - $events->attach('bootstrap', 'bootstrap', array($this, 'initializeView'), 100); + $events = $moduleManager->events(); + $sharedEvents = $events->getSharedManager(); + $sharedEvents->attach('bootstrap', 'bootstrap', array($this, 'initializeView'), 100); } public function getAutoloaderConfig() @@ -42,8 +40,6 @@ class Module implements AutoloaderProvider $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); } }