File tree 4 files changed +6
-7
lines changed
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::
1186
1186
{
1187
1187
private $myService;
1188
1188
1189
- public function __construct(MyService $mySevice )
1189
+ public function __construct(MyService $myService )
1190
1190
{
1191
1191
$this->myService = $myService;
1192
1192
}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ object::
34
34
35
35
To make the ``NewsletterManager `` object available as a service, you can
36
36
configure the service container to use the
37
- ``NewsletterFactory ::createNewsletterManager() `` factory method:
37
+ ``NewsletterManagerFactory ::createNewsletterManager() `` factory method:
38
38
39
39
.. configuration-block ::
40
40
Original file line number Diff line number Diff line change @@ -194,10 +194,9 @@ View data Same as in ``FormEvents::POST_SET_DATA``
194
194
195
195
.. sidebar :: ``FormEvents::SUBMIT`` in the Form component
196
196
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.
201
200
202
201
C) The ``FormEvents::POST_SUBMIT `` Event
203
202
........................................
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ Handling the Form Submission
198
198
Next, you need a controller to handle the form. Start by creating a simple
199
199
controller for displaying the registration form::
200
200
201
- // src/AppBundle/Controller/AccountController .php
201
+ // src/AppBundle/Controller/RegistrationController .php
202
202
namespace AppBundle\Controller;
203
203
204
204
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
You can’t perform that action at this time.
0 commit comments