zendframework/zf2 — pull request #3640 by weierophinney (2013-01-31 17:48:56+00:00)
Title: [#3625] Do not query abstract factories for registered invokables

- Prior to this patch, if a route has been registered as an invokable,
but the DiAbstractServiceFactory was also present, using the FQCN to
retrieve the route would result in DI being invoked. In the case of
the various shipped ZF routes, this was undesirable, as the factory
method for these classes was intended for instantiation; usage if DI
caused failures.
- This patch overrides the setInvokableClass() method of the router
plugin manager such that it also calls setAlias() to alias the FQCN to
the service name; this ensures that usage of the FQCN for a class
already registered as an invokable will work properly.

FIxes #3625