From 1d742a373389773d9c546cafe90d8c3734a45258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Thu, 19 Jan 2023 13:40:59 +0100 Subject: [PATCH] Update docs/backend-system/building-backends/08-migrating.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Patrik Oldsberg Signed-off-by: Fredrik Adelöw --- docs/backend-system/architecture/03-services.md | 9 --------- docs/backend-system/building-backends/08-migrating.md | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/docs/backend-system/architecture/03-services.md b/docs/backend-system/architecture/03-services.md index 71bd95dd1e..27fea27db9 100644 --- a/docs/backend-system/architecture/03-services.md +++ b/docs/backend-system/architecture/03-services.md @@ -101,12 +101,3 @@ const backend = createBackend({ ], }); ``` - -### Migrating Your Own Utilities Into Services - -As your backends grow in complexity, you may have started writing utility -classes with shared backend functionality, that you pass down into your plugins. -Maybe you have placed them into your `PluginEnvironment` in -`packages/backend/src/types.ts`. If this applies to you, you'll probably be -interested in migrating those to become proper backend services according to the -new backend system, so that they can be dependency injected into your backends. diff --git a/docs/backend-system/building-backends/08-migrating.md b/docs/backend-system/building-backends/08-migrating.md index 3a59599518..9552ca325c 100644 --- a/docs/backend-system/building-backends/08-migrating.md +++ b/docs/backend-system/building-backends/08-migrating.md @@ -165,7 +165,7 @@ custom API, so we use a helper function to transform that particular one. To make additions as mentioned above to the environment, you will start to get into the weeds of how the backend system wiring works. You'll need to have a -service reference, and a service factory that performs the actual creation of +service reference and a service factory that performs the actual creation of your service. Please see [the services article](../architecture/03-services.md#defining-a-service) to learn how to create a service ref and its default factory. You can place that code directly