Services are classes that can be exported in the entry and allow you to initialize configurations that remain alive throughout the
application’s lifecycle.
If you edit a service in development mode, that service will be safely restarted.
It is common to use services to initialize databases and register them in the IoC context so that other objects can consume them (middleware, api).
Definition
self
Consumes dependencies registered in the IoC context so that they can be used internally by the function.
By default there are a number of registered objects available: