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 withCompositeContainerto implement theAbstractBaseContainer- Common functionality for DI containers that store services as internal data.AbstractBaseCachingContainer- Common functionality for DI containers that cache resolved services.