Function: ProviderMiddleware()
Function: ProviderMiddleware()
function ProviderMiddleware(context, next): Promise<IBlueprint>;
Middleware to add service providers to the blueprint.
This middleware identifies modules marked as service providers and adds them to the blueprint's list of providers.
Parameters
context
BlueprintContext<IBlueprint, ClassType>
The configuration context containing modules and blueprint.
next
NextPipe<BlueprintContext<IBlueprint, ClassType>, IBlueprint>
The next function in the pipeline.
Returns
Promise<IBlueprint>
The updated blueprint.
Example
ProviderMiddleware({ modules, blueprint }, next);
