zendframework/zf2 — pull request #1707 by kokx (2012-07-02 21:07:19+00:00)
Title: Refactored the service manager's flow with respect to exceptions

The service manager is refactored with respect to exceptions. This fixed the issue that usually, exceptions are catched and thrown in the trashcan, which made it a lot harder for developers to find the root of an issue when it occured during service creation.

I also changed the unit tests.

- Most importantly, instead of falling back on an abstractFactory when a factory fails (as in, throws an exception or the like), we show that the factory fails. This fallback behaviour could only confuse developers. Now the correct behaviour is tested.
- If an abstractFactory tells that it cannot instantiate a service, it should fail on the get() method. Here, also the correct behaviour is tested now.