AbstractServiceProvider::add( string $id, mixed|null $concrete = null, bool|null $shared = null )
Register an entry in the container.
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
- $shared
-
(Optional) Whether to register the class as shared (
get
always returns the same instance) or not.Default value: null
Return Return
(AutomatticWooCommerceVendorLeagueContainerDefinitionDefinitionInterface) The generated container definition.
Source Source
File: src/Internal/DependencyManagement/AbstractServiceProvider.php