e22m4u 1 год назад
Родитель
Сommit
bc8f2d6e19
2 измененных файлов с 8 добавлено и 8 удалено
  1. 4 4
      README-ru.md
  2. 4 4
      README.md

+ 4 - 4
README-ru.md

@@ -43,7 +43,7 @@ const {Service} = require('@e22m4u/js-service');
 тот же метод `getService`, как если бы мы передавали
 тот же метод `getService`, как если бы мы передавали
 сервис-контейнер между ними.
 сервис-контейнер между ними.
 
 
-## `ServiceContainer` class
+## `ServiceContainer`
 
 
 Методы:
 Методы:
 
 
@@ -53,7 +53,7 @@ const {Service} = require('@e22m4u/js-service');
 - `use(ctor, ...args)` добавить конструктор и создать экземпляр
 - `use(ctor, ...args)` добавить конструктор и создать экземпляр
 - `set(ctor, service)` добавить конструктор и его экземпляр
 - `set(ctor, service)` добавить конструктор и его экземпляр
 
 
-### get
+### `get`
 
 
 Метод `get` класса `ServiceContainer` создает экземпляр
 Метод `get` класса `ServiceContainer` создает экземпляр
 полученного конструктора и сохраняет его для последующих
 полученного конструктора и сохраняет его для последующих
@@ -112,7 +112,7 @@ const hasService = childContainer.has(MyService);
 console.log(hasService); // true
 console.log(hasService); // true
 ```
 ```
 
 
-## `Service` class
+## `Service`
 
 
 Методы:
 Методы:
 
 
@@ -166,7 +166,7 @@ const app = new App();
 и его передачу между сервисами, так как эта логика
 и его передачу между сервисами, так как эта логика
 инкапсулирована в классе `Service` и его методе `getService`
 инкапсулирована в классе `Service` и его методе `getService`
 
 
-### getService
+### `getService`
 
 
 Метод `getService` обеспечивает существование единственного
 Метод `getService` обеспечивает существование единственного
 экземпляра запрашиваемого сервиса, а не создает каждый раз
 экземпляра запрашиваемого сервиса, а не создает каждый раз

+ 4 - 4
README.md

@@ -42,7 +42,7 @@ Moreover, if other services also inherit from the `Service` class,
 they can refer to each other using the `getService` method,
 they can refer to each other using the `getService` method,
 as if we were passing the service container between them.
 as if we were passing the service container between them.
 
 
-## `ServiceContainer` class
+## `ServiceContainer`
 
 
 Methods:
 Methods:
 
 
@@ -52,7 +52,7 @@ Methods:
 - `use(ctor, ...args)` adds a constructor and creates its instance
 - `use(ctor, ...args)` adds a constructor and creates its instance
 - `set(ctor, service)` adds a constructor and its instance
 - `set(ctor, service)` adds a constructor and its instance
 
 
-### get
+### `get`
 
 
 The `get` method of the `ServiceContainer` class creates
 The `get` method of the `ServiceContainer` class creates
 an instance of the given constructor and saves it for next
 an instance of the given constructor and saves it for next
@@ -114,7 +114,7 @@ const hasService = childContainer.has(MyService);
 console.log(hasService); // true
 console.log(hasService); // true
 ```
 ```
 
 
-## `Service` class
+## `Service`
 
 
 Methods:
 Methods:
 
 
@@ -169,7 +169,7 @@ a service container and passing it between services,
 because this logic is encapsulated in the `Service`
 because this logic is encapsulated in the `Service`
 class and its `getService` method.
 class and its `getService` method.
 
 
-### getService
+### `getService`
 
 
 The `getService` method ensures the existence of a single
 The `getService` method ensures the existence of a single
 instance of the requested service, rather than creating
 instance of the requested service, rather than creating