Automattic\WooCommerce\Vendor\League\Container
Container::share()
Proxy to add with shared as true.
Метод класса: Container{}
Хуков нет.
Возвращает
DefinitionInterface
.
Использование
$Container = new Container(); $Container->share( $id, $concrete ) : DefinitionInterface;
- $id(строка) (обязательный)
- -
- $concrete(разное)
- -
По умолчанию: null
Код Container::share() Container::share WC 7.5.1
public function share(string $id, $concrete = null) : DefinitionInterface { return $this->add($id, $concrete, true); }