/** * Delegate a backup container to be checked for services if it * cannot be resolved via this container. * * @param \Interop\Container\ContainerInterface $container * @return $this */ public function delegate(InteropContainerInterface $container) { $this->delegates[] = $container; if ($container instanceof ImmutableContainerAwareInterface) { $container->setContainer($this); } return $this; }