From 7d95e12581ae9274a49de361583eb7bcd4c22b0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Holeczy?= Date: Thu, 30 Nov 2017 20:20:44 +0100 Subject: [PATCH 1/2] Add command to require Symfony security The command should be there, because if someone unfamiliar with new Symfony structure use it, it will not work. --- security/entity_provider.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/security/entity_provider.rst b/security/entity_provider.rst index 78e91d21ee2..055d17e3d87 100644 --- a/security/entity_provider.rst +++ b/security/entity_provider.rst @@ -35,7 +35,12 @@ and :ref:`user serialization to the session ` 1) Create your User Entity -------------------------- +Firstable you need to require a Symfony security +.. code-block:: terminal + + $ composer req security + For this entry, suppose that you already have a ``User`` entity inside an ``AppBundle`` with the following fields: ``id``, ``username``, ``password``, ``email`` and ``isActive``:: From 202740bb9f48ca2133e799c1040c76eade1cf502 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Thu, 30 Nov 2017 23:06:32 -0500 Subject: [PATCH 2/2] rewording --- security/entity_provider.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/security/entity_provider.rst b/security/entity_provider.rst index 055d17e3d87..f6fd17e1c64 100644 --- a/security/entity_provider.rst +++ b/security/entity_provider.rst @@ -35,11 +35,12 @@ and :ref:`user serialization to the session ` 1) Create your User Entity -------------------------- -Firstable you need to require a Symfony security + +Before you begin, first make sure you install the Security component: .. code-block:: terminal - $ composer req security + $ composer require security For this entry, suppose that you already have a ``User`` entity inside an ``AppBundle`` with the following fields: ``id``, ``username``, ``password``,