Joomla\DI\Container::share
Convenience method for creating shared keys.
Signature
Parameters
-
$key
- Name of dataStore key to set.
-
$callback
- Callable function to run when requesting the specified $key.
-
$protected
- True to create and store a shared instance.
Returns
- Container
- This instance to support chaining.