@@ -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'),
@@ -245,7 +245,7 @@ controller for displaying the registration form::
245245
246246 If you decide to NOT use annotation routing (shown above), then you'll
247247 need to create a route to this controller:
248-
248+
249249 .. configuration-block ::
250250
251251 .. code-block :: yaml
@@ -288,7 +288,7 @@ Next, create the template:
288288 .. code-block :: html+jinja
289289
290290 {# app/Resources/views/registration/register.html.twig #}
291-
291+
292292 {{ form_start(form) }}
293293 {{ form_row('form.username') }}
294294 {{ form_row('form.email') }}
@@ -297,7 +297,7 @@ Next, create the template:
297297
298298 <button type="submit">Register!</button>
299299 {{ form_end(form) }}
300-
300+
301301 .. code-block :: html+php
302302
303303 <!-- app/Resources/views/registration/register.html.php -->
@@ -362,12 +362,12 @@ registration form. The only trick is that you want to add this field to your for
362362without adding an unnecessary new ``termsAccepted `` property to your ``User `` entity
363363that you'll never need.
364364
365- To do this, add a ``termsAccepted `` field to your form, but set its :ref: ` mapped < reference-form-option-mapped >`
366- option to ``false ``::
365+ To do this, add a ``termsAccepted `` field to your form, but set its
366+ :ref: ` mapped < reference-form-option-mapped >` option to ``false ``::
367367
368368 // src/AppBundle/Form/UserType.php
369369 // ...
370- use Symfony\\ Component\\ Validator\\ Constraints\ \IsTrue;
370+ use Symfony\Component\Validator\Constraints\IsTrue;
371371
372372 class UserType extends AbstractType
373373 {
0 commit comments