atomicobject/objection — pull request #16 by MattesGroeger (2012-03-09 22:22:41+00:00)
Title: Allow circular dependency for singletons.

With this change I added support for circular dependencies (at least singletons). I solved it by adding the newly created object to the `_storageCache` before wiring with all its dependencies. This way if the dependency references back, it will get the already created object. Before, it ended up in an endless loop because it was added to the cache afterwards.

The change is covered in the `CircularDependenciesSpec.m`. In order to have cross-referencing test objects I had to create another fixture file (`CircularDependencyFixture`).