Creates a new ProvidersManager instance
Configuration options including environment and provider state
Pass an array of providers to use
Array of provider nodes to register
this - Returns the ProvidersManager instance for method chaining
Switch the environment in which the app is running.
The new environment to set
this - Returns the ProvidersManager instance for method chaining
Invoke register method on the providers.
Promise that resolves when all providers are registered
Invoke boot method on the providers. The existing providers instances are used.
Promise that resolves when all providers are booted
Invoke start method on all the providers
Promise that resolves when all providers are started
Invoke ready method on all the providers
Promise that resolves when all providers are ready
Invoke shutdown method on all the providers
Whether to shutdown providers in reverse order
Promise that resolves when all providers are shutdown
The ProvidersManager class is used to resolve, import and execute lifecycle methods on registered providers.
The class relies on "import.meta.resolve" to resolve the provider modules from the root of the application.
Also, a single instance of the provider is used to execute all the hooks.