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


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.