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


Top ↑

Return Return

(AutomatticWooCommerceVendorLeagueContainerDefinitionDefinitionInterface) The generated container definition.


Top ↑

Source Source

File: src/Internal/DependencyManagement/AbstractServiceProvider.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.