You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sagikazarmark edited this page Nov 24, 2014
·
1 revision
First of all the new version will clarify that the package provides an Injector which is responsible for resolving classes and their dependencies, and provides a ServiceLocator which stores already resolved class instances, also lets the developer to define a Class, a Service, also Shared Services.
Features of Injector:
Resolve a class and it's dependencies based on constructor type hints
Allow binding interfaces/abstract classes (recursively?) to concrete (resolvable) implementations (it SHOULD NOT be used for class aliasing?)
Features of ServiceLocator:
Resolve and share a class instance
Define Services, Shared Services, and Classes (meaning you can have advanced resolving ways, like setter injection, but this should possibly moved to the injector)