From d7bdfe91cbb78cbd76d1b5ccbc9355e835fd9d2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Nizio=C5=82?= Date: Mon, 29 Aug 2022 15:57:42 +0200 Subject: [PATCH] Fix typos of the Dynamic Form Modification document --- form/dynamic_form_modification.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/form/dynamic_form_modification.rst b/form/dynamic_form_modification.rst index 414a7023768..3937f5c7b63 100644 --- a/form/dynamic_form_modification.rst +++ b/form/dynamic_form_modification.rst @@ -230,7 +230,7 @@ Using an event listener, your form might look like this:: } The problem is now to get the current user and create a choice field that -contains only this user's friends. This can be done injecting the ``Security`` +contains only this user's friends. This can be done by injecting the ``Security`` service into the form type so you can get the current user object:: use Symfony\Component\Security\Core\Security; @@ -490,7 +490,7 @@ The type would now look like:: $sport = $event->getForm()->getData(); // since we've added the listener to the child, we'll have to pass on - // the parent to the callback functions! + // the parent to the callback function! $formModifier($event->getForm()->getParent(), $sport); } ); @@ -510,7 +510,7 @@ exactly the same things on a given form. the listener is bound to, but it allows modifications to its parent. One piece that is still missing is the client-side updating of your form after -the sport is selected. This should be handled by making an AJAX call back to +the sport is selected. This should be handled by making an AJAX callback to your application. Assume that you have a sport meetup creation controller:: // src/Controller/MeetupController.php