This package is abandoned and no longer maintained. The author suggests using the dhii/containers package instead.
A DI container implementation
v0.2-alpha1 2018-04-11 12:44 UTC
Simple, granular, standards-compliant DI container implementations.
- Is an implementation of the PSR-11 standard.
- Uses some other standards published separately.
- Includes support for the delegate lookup feature, a.k.a. composite containers, with intuitive override order.
- Easily extensible and adaptable.
CachingContainer- A simple container that resolves callable service definitions and caches the result, guaranteeing the same instance every time. Cache sold separately.
ContainerAwareCachingContainer- A container that is aware of another container, perhaps a parent one. Callable definitions will receive the top-most parent container of the chain when resolving. Use it with
CompositeContainerto implement the
AbstractBaseContainer- Common functionality for DI containers that store services as internal data.
AbstractBaseCachingContainer- Common functionality for DI containers that cache resolved services.