Automattic\WooCommerce\Vendor\League\Container
Container::defaultToShared()
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() Container::defaultToShared code WC 8.7.0
public function defaultToShared(bool $shared = true) : ContainerInterface { $this->defaultToShared = $shared; return $this; }