OptionalextensionType of registered extension.
OptionalextensionThe name of the extension being registered.
OptionalorderThe order of execution, taking into account the type of extension and the stage of execution.
OptionalsingletonA flag indicating the lifetime of an instance of extensions.
OptionalstageThe stage of the extension execution in the extension chain.
OptionalwhenFunction or array of functions that accept the context of extension execution and allowing extensions to be performed only under certain conditions. If `true', then the lifetime of the extension instance will coincide with the lifetime of the container.
The extension that needs to be registered in the container.