Defines a factory-based service provider.
The factory function that returns a service provider.
Optionaloptions: { isFactory?: true }
Optional flag indicating this is a factory-based provider.
A partial StoneBlueprint registering the provider.
Defines a class-based service provider.
The class that implements a service provider.
Optional flag indicating this is a class-based provider.
A partial StoneBlueprint registering the provider.
Defines a service provider (factory or class) for the Stone.js application.
This utility registers a provider into the
stone.providersblueprint section. It supports both class-based and factory-based providers.Param: module
The service provider (factory function or class).
Param: options
Optional flag to indicate if it's a factory.
Returns
A partial StoneBlueprint with the provider metadata.
Example