Skip to content

Commit 60c5542

Browse files
Hugo Hamonweaverryan
Hugo Hamon
authored andcommitted
proofread cookbook thanks to @dustin10.
1 parent 6892bab commit 60c5542

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

cookbook/security/entity_provider.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
How to load Security Users from the Database (the Entity Provider)
55
==================================================================
66

7-
The security layer is one of the most smart tools of Symfony. It handles two
7+
The security layer is one of the smartest tools of Symfony. It handles two
88
things: the authentication and the authorization processes. Although it seems
9-
a bit quiet complex to understand how everything works internally, this security
9+
quiet complex to understand how everything works internally, this security
1010
system is very flexible and allows you to plug your application to any
1111
authentication backends like an Active Directory, an OAuth server or a database.
1212

@@ -35,7 +35,7 @@ For the purpose of this cookbook, the ``AcmeUserBundle`` bundle contains a
3535
string assigned to the user and the ``isActive`` value tells whether or not the
3636
user account is active.
3737

38-
To make it shorter, the getter and setter method for each have been removed to
38+
To make it shorter, the getter and setter methods for each have been removed to
3939
focus on the most important methods that come from the `UserInterface`_.
4040

4141
.. code-block:: php
@@ -157,15 +157,15 @@ Below is an export of my ``User`` table from MySQL.
157157
4 rows in set (0.00 sec)
158158
159159
The database now contains four users with different roles and statuses. The next
160-
part will focus on how to authenticate one these users thanks to the Doctrine
160+
part will focus on how to authenticate one of these users thanks to the Doctrine
161161
entity user provider and a couple of lines of configuration.
162162

163163
Authenticating Someone Against a Database
164164
-----------------------------------------
165165

166166
Authenticating a Doctrine user against the database with the Symfony security
167167
layer is a piece of cake. Everything resides in the configuration of the
168-
``app/config/security.yml`` file.
168+
`SecurityBundle`_ stored in the ``app/config/security.yml`` file.
169169

170170
Below is an example of configuration to authenticate the user with an HTTP basic
171171
authentication connected to the database.
@@ -326,4 +326,5 @@ from the database.
326326
.. _`UserInterface`: http://api.symfony.com/2.0/Symfony/Component/Security/Core/User/UserInterface.html
327327
.. _`UserProviderInterface`: http://api.symfony.com/2.0/Symfony/Component/Security/Core/User/UserProviderInterface.html
328328
.. _`UsernameNotFoundException`: http://api.symfony.com/2.0/Symfony/Component/Security/Core/Exception/UsernameNotFoundException.html
329-
.. _`UnsupportedUserException`: http://api.symfony.com/2.0/Symfony/Component/Security/Core/Exception/UnsupportedUserException.html
329+
.. _`UnsupportedUserException`: http://api.symfony.com/2.0/Symfony/Component/Security/Core/Exception/UnsupportedUserException.html
330+
.. _`SecurityBundle`: http://symfony.com/doc/current/reference/configuration/security.html

0 commit comments

Comments
 (0)