Skip to content

Commit

Permalink
Fix the order of the argument to pass to the dispatcher since Symfony 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Romain Guerrero committed Sep 13, 2023
1 parent 16af933 commit 79ec4de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Form/FormManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 79ec4de

Please sign in to comment.