27 lines
760 B
Plaintext
27 lines
760 B
Plaintext
{{#apiInfo}}
|
|
{{#apis}}
|
|
{{#operations}}
|
|
import { EnvironmentProviders, makeEnvironmentProviders } from '@angular/core';
|
|
|
|
import { {{constantName}}_REPOSITORY } from '@/domain/repositories/{{classFilename}}/{{classFilename}}.repository.contract';
|
|
import { {{classname}}RepositoryImpl } from '@/data/repositories/{{classFilename}}/{{classFilename}}.repository.impl';
|
|
|
|
/**
|
|
* {{classname}} Repository Provider
|
|
* Binds the repository contract with its implementation
|
|
*
|
|
* @returns EnvironmentProviders
|
|
*/
|
|
export function provide{{classname}}Repository(): EnvironmentProviders {
|
|
return makeEnvironmentProviders([
|
|
{
|
|
provide: {{constantName}}_REPOSITORY,
|
|
useClass: {{classname}}RepositoryImpl
|
|
}
|
|
]);
|
|
}
|
|
|
|
{{/operations}}
|
|
{{/apis}}
|
|
{{/apiInfo}}
|