@@ -9,7 +9,7 @@ When a user submits a username and password, the authentication layer asks
99the configured user provider to return a user object for a given username.
1010Symfony then checks whether the password of this user is correct and generates
1111a security token so the user stays authenticated during the current session.
12- Out of the box, Symfony has four user providers: ``memory ``, ``entity ``,
12+ Out of the box, Symfony has four user providers: ``memory ``, ``entity ``,
1313``ldap `` and ``chain ``. In this entry you'll see how you can create your
1414own user provider, which could be useful if your users are accessed via a
1515custom database, a file, or - as shown in this example - a web service.
@@ -174,18 +174,18 @@ Now you make the user provider available as a service. If you're using the
174174:ref: `default services.yaml configuration <service-container-services-load-example >`,
175175this happens automatically.
176176
177- Modify ``security.yml ``
178- -----------------------
177+ Modify ``security.yaml ``
178+ ------------------------
179179
180180Everything comes together in your security configuration. Add the user provider
181- to the list of providers in the "security" section . Choose a name for the user provider
181+ to the list of providers in the "security" config . Choose a name for the user provider
182182(e.g. "webservice") and mention the ``id `` of the service you just defined.
183183
184184.. configuration-block ::
185185
186186 .. code-block :: yaml
187187
188- # app/ config/security.yml
188+ # config/packages/ security.yaml
189189 security :
190190 # ...
191191
@@ -195,7 +195,7 @@ to the list of providers in the "security" section. Choose a name for the user p
195195
196196 .. code-block :: xml
197197
198- <!-- app/ config/security.xml -->
198+ <!-- config/packages /security.xml -->
199199 <?xml version =" 1.0" encoding =" UTF-8" ?>
200200 <srv : container xmlns =" http://symfony.com/schema/dic/security"
201201 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -233,7 +233,7 @@ users, e.g. by filling in a login form. You can do this by adding a line to the
233233
234234 .. code-block :: yaml
235235
236- # app/ config/security.yml
236+ # config/packages/ security.yaml
237237 security :
238238 # ...
239239
@@ -242,7 +242,7 @@ users, e.g. by filling in a login form. You can do this by adding a line to the
242242
243243 .. code-block :: xml
244244
245- <!-- app/ config/security.xml -->
245+ <!-- config/packages /security.xml -->
246246 <?xml version =" 1.0" encoding =" UTF-8" ?>
247247 <srv : container xmlns =" http://symfony.com/schema/dic/security"
248248 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -282,7 +282,7 @@ is compared to the hashed password returned by your ``getPassword()`` method.
282282 Symfony uses a specific method to combine the salt and encode the password
283283 before comparing it to your encoded password. If ``getSalt() `` returns
284284 nothing, then the submitted password is simply encoded using the algorithm
285- you specify in ``security.yml ``. If a salt *is * specified, then the following
285+ you specify in ``security.yaml ``. If a salt *is * specified, then the following
286286 value is created and *then * hashed via the algorithm::
287287
288288 $password.'{'.$salt.'}'
@@ -301,7 +301,7 @@ is compared to the hashed password returned by your ``getPassword()`` method.
301301
302302 .. code-block :: yaml
303303
304- # app/ config/security.yml
304+ # config/packages/ security.yaml
305305 security :
306306 # ...
307307
@@ -312,7 +312,7 @@ is compared to the hashed password returned by your ``getPassword()`` method.
312312
313313 .. code-block :: xml
314314
315- <!-- app/ config/security.xml -->
315+ <!-- config/packages /security.xml -->
316316 <?xml version =" 1.0" encoding =" UTF-8" ?>
317317 <srv : container xmlns =" http://symfony.com/schema/dic/security"
318318 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
0 commit comments