Defines a factory-based service for the Stone.js application.
A factory function that returns the service instance.
Configuration options for the service including alias and factory flag.
A partial StoneBlueprint registering the service.
Defines a class-based service for the Stone.js application.
The service class to be registered.
Configuration options for the service including alias and factory flag.
A partial StoneBlueprint registering the service.
Defines a service (factory or class) for the Stone.js application.
This utility registers a service in the
stone.servicessection of the blueprint. It supports both factory and class-based service definitions.Param: module
The service class or factory function.
Param: options
Service configuration options including alias and factory flag.
Returns
A partial StoneBlueprint containing the service metadata.
Example