Browse Source

chore: Typo in README

Oliver Windall Juhl 3 years ago
parent
commit
7b4cb4f0b2
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/services/README.md
  2. 1 1
      src/subscribers/README.md

+ 1 - 1
src/services/README.md

@@ -24,7 +24,7 @@ class MyService extends BaseService {
 export default MyService;
 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.
 You may use the services you define here in custom endpoints by resolving the services defined.
 
 

+ 1 - 1
src/subscribers/README.md

@@ -22,4 +22,4 @@ A subscriber is defined as a `class` which is registered as a subscriber by invo
 
 
 The type of event that the subscriber subscribes to is passed as the first parameter to the `eventBusService.subscribe` and the eventhandler is passed as the second parameter. The types of events a service can emmit are described in the individual service.
 The type of event that the subscriber subscribes to is passed as the first parameter to the `eventBusService.subscribe` and the eventhandler is passed as the second parameter. The types of events a service can emmit are described in the individual service.
 
 
-An eventhandler has one paramenter; a data `object` which contain information relating to the event, including relevant `id's`. The `id` can be used to fetch the appropriate entity in the eventhandler.
+An eventhandler has one parameter; a data `object` which contain information relating to the event, including relevant `id's`. The `id` can be used to fetch the appropriate entity in the eventhandler.