Elemental lowcode development platform.
Services are managed within an IoC (Inversion of Control) container, allowing them to be injected into:
You can register your services within the Services section of the admin. Each service should follow the following pattern:
const service = function(serviceDep) {
this.serviceDep = serviceDep;
};
service.prototype.something = function(value) {
return value * this.serviceDep.getMultiplier();
};
module.exports = service;
Once a service is named it cannot be renamed.
A service can be resolved using the service provider.
There are a number of predefined services that can be access from within your controllers/handlers, these are: