init method

  1. @override
void init()
override

Implementation

@override
void init() {
  ComponentRegistry().init(
    CartComponentConstructorDefault(),
    CartComponentEditorConstructor(),
    OrderOverviewComponentConstructorDefault(),
    OrderOverviewComponentEditorConstructor(),
    PayComponentConstructorDefault(),
    PayComponentEditorConstructor(),
    PayConfirmationComponentConstructorDefault(),
    PayConfirmationComponentEditorConstructor(),
    ProductDisplayComponentConstructorDefault(),
    ProductDisplayComponentEditorConstructor(),
    ShopFrontComponentConstructorDefault(),
    ShopFrontComponentEditorConstructor(),
  );

  // Wizards
  Apis.apis().getWizardApi().register(ShopPageWizard());
  Apis.apis().getWizardApi().register(PaymentWorkflowWizard());

  AbstractRepositorySingleton.singleton = RepositorySingleton();
}