Permalink
Browse files

Merge branch 'release'

  • Loading branch information...
2 parents 4974628 + adbd281 commit 069c6ef4f61c91dc876ac755b98cfeb6e66f846f @weierophinney weierophinney committed Sep 14, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 library/Zend/ModuleManager/Listener/LocatorRegistrationListener.php
@@ -67,6 +67,10 @@ public function onLoadModulesPost(Event $e)
$moduleManager = $e->getTarget();
$events = $moduleManager->getEventManager()->getSharedManager();
+ if (!$events) {
+ return;
+ }
+
// Shared instance for module manager
$events->attach('Zend\Mvc\Application', MvcEvent::EVENT_BOOTSTRAP, function ($e) use ($moduleManager) {
$moduleClassName = get_class($moduleManager);

0 comments on commit 069c6ef

Please sign in to comment.