Install via composer


This bundle uses symfony flex recipes to install further files via composer. Please check that flex is already configured in your project as it is part of the installation.

$ composer require enhavo/form-bundle ^0.8

Add node package

Execute following command to add required node package:

$ yarn add @enhavo/form

Register form package

Add following lines to assets/enhavo/registry/form.ts

// import statement
import FormFormRegistryPackage from "@enhavo/form/FormRegistryPackage";

// register the package
this.registerPackage(new FormFormRegistryPackage(application));

Register encore package

Add following entrypoint to the enhavo section in webpack.config.js file.

// import
const FormPackage = require('@enhavo/form/Encore/EncoreRegistryPackage');

// register package
.register(new FormPackage())

Build assets

Execute following commands to build your asset files.

$ yarn encore dev
% yarn routes:dump