Skip to content

Commit ec102c2

Browse files
committed
add warning for setup contract
1 parent 64af9c9 commit ec102c2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

x-pack/plugins/features/server/plugin.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ import { defineRoutes } from './routes';
2626
*/
2727
export interface PluginSetupContract {
2828
registerFeature(feature: FeatureConfig): void;
29+
/*
30+
* Calling this function during setup will crash Kibana.
31+
* Use start contract instead.
32+
* @deprecated
33+
* */
2934
getFeatures(): Feature[];
3035
getFeaturesUICapabilities(): UICapabilities;
3136
}

0 commit comments

Comments
 (0)