zendframework/zf2 — pull request #1978 by weierophinney (2012-07-24 19:53:48+00:00)
Title: SharedEventManager -> static instance

Due to a number of issues that have arisen, in many cases due to user
expectations, it makes sense to make the initial shared event manager instance
the seed for the StaticEventManager. As such, the following changes were made:

- StaticEventManager:
- Adds setInstance() and hasInstance() methods; former takes a
SharedEventManagerInterface, and latter indicates whether the instance is
populated.
- EventManager:
- setSharedManager() seeds the StaticEventManager
- getSharedManager() now tests for an instance in StaticEventManager, using it
if populated
- Updated the Forward MVC controller plugin tests to ensure the SEM instance is
reset, ensuring tests run correctly as part of a suite.