X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=module%2FApplication%2FModule.php;fp=module%2FApplication%2FModule.php;h=a540a11f8d7d3f544843c47060db1cd6520438ed;hb=7a482c8f4e56f572888c780da6c1912facd26850;hp=d85f6cfbdce8d961684d34e00fe3b2dc7015ae4e;hpb=bae3ee6daf0da0070f707f66bcdbc844a9ae5b2b;p=zf2.biz%2Fgalerie.git diff --git a/module/Application/Module.php b/module/Application/Module.php index d85f6cf..a540a11 100644 --- a/module/Application/Module.php +++ b/module/Application/Module.php @@ -10,8 +10,9 @@ class Module implements AutoloaderProvider { 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()