Migrate to 0.9ΒΆ

  1. Add this line at the end of assets/enhavo/form.ts
Application.getView().checkUrl();
  1. Create registry file assets/enhavo/registry/widget.ts
import RegistryPackage from "@enhavo/core/RegistryPackage";
import ApplicationInterface from "@enhavo/app/ApplicationInterface";
import AppWidgetRegistryPackage from "@enhavo/app/Toolbar/Widget/WidgetRegistryPackage";

export default class ViewRegistryPackage extends RegistryPackage
{
    constructor(application: ApplicationInterface) {
        super();
        this.registerPackage(new AppWidgetRegistryPackage(application));
    }
}
  1. Add widget registry to assets/enhavo/main.ts
// Add import line
import WidgetRegistryPackage from "./registry/widget";

// Add register package line
Application.getWidgetRegistry().registerPackage(new WidgetRegistryPackage(Application));
  1. Rename routing manager service id enhavo_routing.manager.route to FQCN Enhavo\Bundle\RoutingBundle\Manager\RouteManager
  2. Rename property to properties for route PrefixGenerator type.
enhavo_routing:
    classes:
        App\MyEntity:
            generators:
                prefix:
                    type: prefix
                    # before
                    property: title
                    # now
                    properties: title