Automattic\WooCommerce\Vendor\League\Container
Container::delegate()
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() Container::delegate WC 9.3.1
public function delegate(ContainerInterface $container) : self { $this->delegates[] = $container; if ($container instanceof ContainerAwareInterface) { $container->setLeagueContainer($this); } return $this; }