Automattic\WooCommerce\Vendor\League\Container
Container::defaultToShared()
Whether the container should default to defining shared definitions.
Метод класса: Container{}
Хуков нет.
Возвращает
self
.
Использование
$Container = new Container(); $Container->defaultToShared( $shared ) : ContainerInterface;
- $shared(true|false)
- -
По умолчанию: true
Код Container::defaultToShared() Container::defaultToShared WC 7.5.1
public function defaultToShared(bool $shared = true) : ContainerInterface { $this->defaultToShared = $shared; return $this; }