Skip to content

Commit

Permalink
Merge pull request #9 from acseo/fix-dispatcher-argument-order-symfony-5
Browse files Browse the repository at this point in the history
Fix the order of the argument to pass to the dispatcher since Symfony 5
  • Loading branch information
romainguerrero authored Sep 13, 2023
2 parents 16af933 + 79ec4de commit 5ba0408
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 5ba0408

Please sign in to comment.