Automattic\WooCommerce\Vendor\League\Container

Container::delegate()publicWC 1.0

Delegate a backup container to be checked for services if it cannot be resolved via this container.

Метод класса: Container{}

Хуков нет.

Возвращает

self.

Использование

$Container = new Container();
$Container->delegate( $container ) : self;
$container(ContainerInterface) (обязательный)
-

Код Container::delegate() WC 8.7.0

public function delegate(ContainerInterface $container) : self
{
    $this->delegates[] = $container;

    if ($container instanceof ContainerAwareInterface) {
        $container->setLeagueContainer($this);
    }

    return $this;
}