backend-plugin-api: rename configService to rootConfigService
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
@@ -321,7 +321,7 @@
|
||||
createServiceFactory({
|
||||
service: coreServices.cache,
|
||||
deps: {
|
||||
config: coreServices.config,
|
||||
config: coreServices.rootConfig,
|
||||
plugin: coreServices.pluginMetadata,
|
||||
},
|
||||
async createRootContext({ config }) {
|
||||
|
||||
+1
-1
@@ -19,4 +19,4 @@ import { Config } from '@backstage/config';
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export interface ConfigService extends Config {}
|
||||
export interface RootConfigService extends Config {}
|
||||
@@ -36,9 +36,9 @@ export namespace coreServices {
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export const config = createServiceRef<
|
||||
import('./ConfigService').ConfigService
|
||||
>({ id: 'core.config', scope: 'root' });
|
||||
export const rootConfig = createServiceRef<
|
||||
import('./RootConfigService').RootConfigService
|
||||
>({ id: 'core.rootConfig', scope: 'root' });
|
||||
|
||||
/**
|
||||
* The service reference for the plugin scoped {@link DatabaseService}.
|
||||
|
||||
@@ -20,7 +20,7 @@ export type {
|
||||
CacheServiceOptions,
|
||||
CacheServiceSetOptions,
|
||||
} from './CacheService';
|
||||
export type { ConfigService } from './ConfigService';
|
||||
export type { RootConfigService } from './RootConfigService';
|
||||
export type { DatabaseService } from './DatabaseService';
|
||||
export type { DiscoveryService } from './DiscoveryService';
|
||||
export type { HttpRouterService } from './HttpRouterService';
|
||||
|
||||
Reference in New Issue
Block a user