zendframework/zf2 — pull request #1461 by superdweebie (2012-06-07 00:59:36+00:00)
Title: removed EventManagerAwareInterface from ModuleManagerInterface

Hey, I don't know if this is the best way to fix this problem, but at least it shows the problem. ServiceManager was recognising EventManagerAwareInterface on a ModuleManager and so injecting an EventManager after ModuleManager had been build by the ModuleManagerFactory, therefore replacing the EventManager injected by ModuleManagerFactory and effectively deleting all module events (ie modules wouldn't load).

Removing EventManagerAwareInterface stops ServiceManager injecting a new EventManager over the top, so everything works again.

:)