AbstractServiceProvider::share( string $id, mixed|null $concrete = null )
Register a shared entry in the container (get
always returns the same instance).
Description Description
Parameters Parameters
- $id
-
(Required) Entry id (typically a class or interface name).
- $concrete
-
(Optional) Concrete entity to register under that id, null for automatic creation.
Default value: null
Return Return
(AutomatticWooCommerceVendorLeagueContainerDefinitionDefinitionInterface) The generated container definition.
Source Source
File: src/Internal/DependencyManagement/AbstractServiceProvider.php