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:
Adam Leach
2025-06-23 22:46:34 +01:00
committed by GitHub
parent ee1251993d
commit af41d2ae90
@@ -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 }) {