Automattic\WooCommerce\Vendor\League\Container

Container::share()publicWC 1.0

Proxy to add with shared as true.

Method of the class: Container{}

No Hooks.

Return

DefinitionInterface.

Usage

$Container = new Container();
$Container->share( $id, $concrete ) : DefinitionInterface;
$id(string) (required)
-
$concrete(mixed)
-
Default: null

Container::share() code WC 7.1.0

public function share(string $id, $concrete = null) : DefinitionInterface
{
    return $this->add($id, $concrete, true);
}