diff --git a/Form/FormManager.php b/Form/FormManager.php index 387e160..9a1feb2 100644 --- a/Form/FormManager.php +++ b/Form/FormManager.php @@ -51,7 +51,7 @@ public function createForm(FormProviderInterface $formProvider) $form = $this->formFactory->create(DynamicFormType::class); $event = new FormEvent($form); - $this->dispatcher->dispatch(Events::FORM_CREATE, $event); + $this->dispatcher->dispatch($event, Events::FORM_CREATE); return $form; }