This is an extremely lightweight Composite Container for use with the Delegate Lookup pattern. It is PSR-11 compliant.
Use it with the Ultra-Lite Container or any other Delegate Lookup containers.
$compositeContainer = new \UltraLite\CompositeContainer\CompositeContainer();
$compositeContainer->addContainer($container);
$container->setDelegateContainer($compositeContainer); // or appropriate method on Delegate Lookup container
if ($compositeContainer->has($serviceId) {
$compositeContainer->get($serviceId);
}
composer require ultra-lite/composite-container