@@ -28,10 +28,10 @@ Your ``User`` entity will probably at least have the following fields:
2828 A nice piece of information to collect. You can also allow users to
2929 :ref: `login via email <registration-form-via-email >`.
3030
31- * ``password ``
31+ ``password ``
3232 The encoded password.
3333
34- * ``plainPassword ``
34+ ``plainPassword ``
3535 This field is *not * persisted: (notice no ``@ORM\Column `` above it). It
3636 temporarily stores the plain password from the registration form. This field
3737 can be validated then used to populate the ``password `` field.
@@ -49,7 +49,7 @@ With some validation added, your class may look something like this::
4949 /**
5050 * @ORM\Entity
5151 * @UniqueEntity(fields="email", message="Email already taken")
52- * @UniqueEntity(fields="username", message="Username already taken")
52+ * @UniqueEntity(fields="username", message="Username already taken")
5353 */
5454 class User implements UserInterface
5555 {
@@ -163,8 +163,8 @@ Next, create the form for the ``User`` entity::
163163 public function buildForm(FormBuilderInterface $builder, array $options)
164164 {
165165 $builder
166- ->add('email', 'email');
167- ->add('username', 'text');
166+ ->add('email', 'email')
167+ ->add('username', 'text')
168168 ->add('plainPassword', 'repeated', array(
169169 'type' => 'password',
170170 'first_options' => array('label' => 'Password'),
@@ -250,7 +250,7 @@ controller for displaying the registration form::
250250
251251 If you decide to NOT use annotation routing (shown above), then you'll
252252 need to create a route to this controller:
253-
253+
254254 .. configuration-block ::
255255
256256 .. code-block :: yaml
@@ -293,7 +293,7 @@ Next, create the template:
293293 .. code-block :: html+jinja
294294
295295 {# app/Resources/views/registration/register.html.twig #}
296-
296+
297297 {{ form_start(form) }}
298298 {{ form_row('form.username') }}
299299 {{ form_row('form.email') }}
@@ -302,7 +302,7 @@ Next, create the template:
302302
303303 <button type="submit">Register!</button>
304304 {{ form_end(form) }}
305-
305+
306306 .. code-block :: html+php
307307
308308 <!-- app/Resources/views/registration/register.html.php -->
@@ -367,12 +367,12 @@ registration form. The only trick is that you want to add this field to your for
367367without adding an unnecessary new ``termsAccepted `` property to your ``User `` entity
368368that you'll never need.
369369
370- To do this, add a ``termsAccepted `` field to your form, but set its :ref: ` mapped < reference-form-option-mapped >`
371- option to ``false ``::
370+ To do this, add a ``termsAccepted `` field to your form, but set its
371+ :ref: ` mapped < reference-form-option-mapped >` option to ``false ``::
372372
373373 // src/AppBundle/Form/UserType.php
374374 // ...
375- use Symfony\\ Component\\ Validator\\ Constraints\ \IsTrue;
375+ use Symfony\Component\Validator\Constraints\IsTrue;
376376
377377 class UserType extends AbstractType
378378 {
0 commit comments