Automattic\WooCommerce\Vendor\League\Container

Container::defaultToShared()publicWC 1.0

Whether the container should default to defining shared definitions.

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

Хуков нет.

Возвращает

self.

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

$Container = new Container();
$Container->defaultToShared( $shared ) : ContainerInterface;
$shared(true|false)
-
По умолчанию: true

Код Container::defaultToShared() WC 6.8.0

public function defaultToShared(bool $shared = true) : ContainerInterface
{
    $this->defaultToShared = $shared;

    return $this;
}