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 8.7.0

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

    return $this;
}