zendframework/zf2 — pull request #1697 by weierophinney (2012-07-01 21:28:36+00:00)
Title: [zen-24] Create ModuleRouteListener

- Listens on route event
- If the route match contains a parameter matching MODULE_NAMESPACE, it
will prepend the matched controller parameter with that value

Ideally, I'd rather use specific route types. However, in a discussion with @DASPRiD, it turns out there a variety of obstacles to implementing in that way. The approach in this PR requires the key to be "__NAMESPACE__", and the listener would have to be explicitly registered by a module and/or application in order to be triggered.