Automattic\WooCommerce\Vendor\League\Container
Container::share()
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() Container::share code WC 9.6.0
public function share(string $id, $concrete = null) : DefinitionInterface { return $this->add($id, $concrete, true); }