File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -1186,7 +1186,7 @@ type. Create a constructor to your form type to receive the service::
11861186 {
11871187 private $myService;
11881188
1189- public function __construct(MyService $mySevice )
1189+ public function __construct(MyService $myService )
11901190 {
11911191 $this->myService = $myService;
11921192 }
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ object::
3434
3535To make the ``NewsletterManager `` object available as a service, you can
3636configure the service container to use the
37- ``NewsletterFactory ::createNewsletterManager() `` factory method:
37+ ``NewsletterManagerFactory ::createNewsletterManager() `` factory method:
3838
3939.. configuration-block ::
4040
Original file line number Diff line number Diff line change @@ -194,10 +194,9 @@ View data Same as in ``FormEvents::POST_SET_DATA``
194194
195195.. sidebar :: ``FormEvents::SUBMIT`` in the Form component
196196
197- The ``Symfony\Component\Form\Extension\Core\EventListener\ResizeFormListener ``
198- subscribes to the ``FormEvents::SUBMIT `` event in order to remove the
199- fields that need to be removed whenever manipulating a collection of forms
200- for which ``allow_delete `` has been enabled.
197+ The ``Symfony\Component\Form\Extension\Core\EventListener\FixUrlProtocolListener ``
198+ subscribes to the ``FormEvents::SUBMIT `` event in order to prepend a default
199+ protocol to URL fields that were submitted without a protocol.
201200
202201C) The ``FormEvents::POST_SUBMIT `` Event
203202........................................
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ Handling the Form Submission
198198Next, you need a controller to handle the form. Start by creating a simple
199199controller for displaying the registration form::
200200
201- // src/AppBundle/Controller/AccountController .php
201+ // src/AppBundle/Controller/RegistrationController .php
202202 namespace AppBundle\Controller;
203203
204204 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
You can’t perform that action at this time.
0 commit comments