|
@@ -24,7 +24,7 @@ class MyService extends BaseService {
|
|
|
export default MyService;
|
|
|
```
|
|
|
|
|
|
-The first argument to the `constructor` is the global giving you access to easy dependency injection. The container holds all registered services from the core, installed plugins and from other files in the `/services` directory. The registration name is a camelCased version of the file name with the type appended i.e.: `my.js` is registered as `myService`, `custom-thing.js` is registerd as `customThingService`.
|
|
|
+The first argument to the `constructor` is the global giving you access to easy dependency injection. The container holds all registered services from the core, installed plugins and from other files in the `/services` directory. The registration name is a camelCased version of the file name with the type appended i.e.: `my.js` is registered as `myService`, `custom-thing.js` is registered as `customThingService`.
|
|
|
|
|
|
You may use the services you define here in custom endpoints by resolving the services defined.
|
|
|
|