LinioIT / dynamic-form-bundle

Generates symfony forms based on Yaml configuration files
18 stars 11 forks source link

Documentation code example not working #25

Open Shotman opened 3 years ago

Shotman commented 3 years ago

After following the example code in the README this is not working on symfony 4 or 5. I get an error "cannot call method createForm on null", this I've noticed it can be fixed by adding a constructor in the DynamicFormAware trait like this public function __construct() { $this->dynamicFormFactory = new FormFactory(); } but then I get an error that the key "new_user" is not found, so I don't know where the form yaml should be put.

Could you update the doc and/or the bundle please ?