Automattic\WooCommerce\Vendor\League\Container
Container::share() public WC 1.0
Proxy to add with shared as true.
{} It's a method of the class: Container{}
No Hooks.
Return
DefinitionInterface.
Usage
$Container = new Container(); $Container->share( $id, $concrete ) : DefinitionInterface;
- $id(string) (required)
- -
- $concrete(mixed)
- -
Code of Container::share() Container::share WC 5.0.0
public function share(string $id, $concrete = null) : DefinitionInterface
{
return $this->add($id, $concrete, true);
}