init method

  1. @override
void init()
override

Implementation

@override
void init() {
  ComponentRegistry().init(
    FeedFrontComponentConstructorDefault(),
    FeedFrontComponentEditorConstructor(),
    FeedMenuComponentConstructorDefault(),
    FeedMenuComponentEditorConstructor(),
    ProfileComponentConstructorDefault(),
    ProfileComponentEditorConstructor(),
  );

  AbstractRepositorySingleton.singleton = RepositorySingleton();

  // register new app wizard for feed
  Apis.apis().getWizardApi().register(FeedWizard());

  // Register action handler for the feed action
  eliud_router.Router.register(PostActionHandler());

/*
  Apis.apis().registerPageComponentsBloc('profile', ProfileWidgetWrapper('feed'));
*/

  // Register a mapper for an extra action: the mapper for the WorkflowAction
  ActionModelRegistry.registry()!
      .addMapper(PostActionEntity.label, PostActionMapper());
}