Skip to content

Commit 44d7479

Browse files
committed
[#6255] some tweaks
1 parent 134d90e commit 44d7479

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cookbook/doctrine/registration_form.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ into the database::
217217

218218
use AppBundle\Form\UserType;
219219
use AppBundle\Entity\User;
220+
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
220221
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
221222
use Symfony\Component\HttpFoundation\Request;
222-
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
223223

224224
class RegistrationController extends Controller
225225
{
@@ -247,7 +247,7 @@ into the database::
247247
$em->persist($user);
248248
$em->flush();
249249

250-
// ... do any other work - like send them an email, etc
250+
// ... do any other work - like sending them an email, etc
251251
// maybe set a "flash" success message for the user
252252

253253
$redirectUrl = $this->generateUrl('replace_with_some_route');
@@ -410,9 +410,9 @@ return the ``email`` property::
410410
// ...
411411
}
412412

413-
Next, just update the ``providers`` section of your ``security.yml`` so that Symfony
414-
knows to load your users via the ``email`` property on login. See
415-
:ref:`authenticating-someone-with-a-custom-entity-provider`.
413+
Next, just update the ``providers`` section of your ``security.yml`` file
414+
so that Symfony knows how to load your users via the ``email`` property on
415+
login. See :ref:`authenticating-someone-with-a-custom-entity-provider`.
416416

417417
Adding a "accept terms" Checkbox
418418
--------------------------------

0 commit comments

Comments
 (0)