zendframework/zf2 — pull request #786 by EvanDotPro (2012-02-11 12:44:35+00:00)
Title: Feature/module locator registration

- New module listener: you can implement Zend\Module\Consumer\LocatorRegistered in your Module class and the listener will register the module instance as a type preference in DI.
- Includes unit tests, 100% coverage.
- In any DI configured class you can add a setter or constructor parameter now that has a typehint of the Module class you want, as long as it implements LocatorRegistered and it will be passed the active instance of that module class. This is very handy for module options.