@rocketmakers/orbit-template-service
v2.0.5
Published
> TODO: description
Downloads
5,182
Keywords
Readme
@rocketmakers/orbit-template-services
Set of service classes required to manage templates for orbit notifications
Implementation
When using @rocketmakers/orbit-template-services
there are two options to register service classes with your ioc framework.
Option #1:
If you only want to register classes as needed, or inject alternative repository layers, you can bootstrap services as you would with any other class.
Option #2:
You can bootstrap template service classes using the exposed registerTemplateServiceIoC()
function by following the steps below. This will register all service classes, using injected git http template repository classes from @rocketmakers/orbit-template-http-repository
(you must install this as a dependency).
// Register core types and services from @rocketmakers/orbit-core
registerCoreIoC();
// Register types and repository classes from @rocketmakers/orbit-template-http-repository
registerTemplateRepositoryIoC({ rootTemplateRepoUrl, notifyServiceName });
// Register template types and services from @rocketmakers/orbit-template-services
registerTemplateServiceIoC();
Docs
Hosted docs covering types, interfaces and all service class/method signatures within this package can be found using the link below:
Source code
Source code for this package can be found using the link below:
Contributing docs can be found in the README.md