Automattic\WooCommerce\Vendor\League\Container

Container::defaultToShared()publicWC 1.0

Whether the container should default to defining shared definitions.

Method of the class: Container{}

No Hooks.

Return

self.

Usage

$Container = new Container();
$Container->defaultToShared( $shared ) : ContainerInterface;
$shared(true|false)
-
Default: true

Container::defaultToShared() code WC 9.0.1

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

    return $this;
}