Skip to content

Commit 5ba0408

Browse files
Merge pull request #9 from acseo/fix-dispatcher-argument-order-symfony-5
Fix the order of the argument to pass to the dispatcher since Symfony 5
2 parents 16af933 + 79ec4de commit 5ba0408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Form/FormManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function createForm(FormProviderInterface $formProvider)
5151
$form = $this->formFactory->create(DynamicFormType::class);
5252

5353
$event = new FormEvent($form);
54-
$this->dispatcher->dispatch(Events::FORM_CREATE, $event);
54+
$this->dispatcher->dispatch($event, Events::FORM_CREATE);
5555

5656
return $form;
5757
}

0 commit comments

Comments
 (0)