docs: remove function call from all backend feature installation instructions

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-09-18 15:22:41 +02:00
parent d0a007356b
commit 2f88f88882
17 changed files with 41 additions and 30 deletions
+2 -2
View File
@@ -101,7 +101,7 @@ export const examplePlugin = createBackendPlugin({
The plugin can then be installed in the backend using the returned plugin factory function:
```ts
backend.add(examplePlugin());
backend.add(examplePlugin);
```
If we wanted our plugin to accept options as well, we'd accept the options as the second parameter of the register method:
@@ -266,7 +266,7 @@ class GoogleCloudLogger implements LoggerService {
const backend = createBackend();
// supplies additional or replacement services to the backend
backend.add(GoogleCloudLogger.factory());
backend.add(GoogleCloudLogger.factory);
```
## Testing