Automattic\WooCommerce\Vendor\League\Container
Container::delegate() public WC 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(Containerчислоerface) (обязательный)
- -
Код Container::delegate() Container::delegate WC 5.0.0
public function delegate(ContainerInterface $container) : self
{
$this->delegates[] = $container;
if ($container instanceof ContainerAwareInterface) {
$container->setLeagueContainer($this);
}
return $this;
}