Correct import for actionsRegistry
The docs suggest using coreServices for actionsRegistry, but that is not available yet. This corrects the import in the docs Signed-off-by: Adam Leach <github@adamleach.uk>
This commit is contained in:
@@ -137,13 +137,15 @@ import {
|
||||
createBackendPlugin,
|
||||
coreServices,
|
||||
} from '@backstage/backend-plugin-api';
|
||||
import { actionsRegistryServiceRef } from '@backstage/backend-plugin-api/alpha';
|
||||
|
||||
|
||||
export const myPlugin = createBackendPlugin({
|
||||
pluginId: 'my-plugin',
|
||||
register(env) {
|
||||
env.registerInit({
|
||||
deps: {
|
||||
actionsRegistry: coreServices.actionsRegistry,
|
||||
actionsRegistry: actionsRegistryServiceRef,
|
||||
logger: coreServices.logger,
|
||||
},
|
||||
async init({ actionsRegistry, logger }) {
|
||||
|
||||
Reference in New Issue
Block a user