Skip to content
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -231,6 +231,11 @@ You can manually encode a password by running:
231
231
3a) Authentication & Firewalls
232
232
------------------------------
233
233
234
+ .. versionadded :: 5.1
235
+
236
+ The ``lazy: true `` option was introduced in Symfony 5.1. Prior to version 5.1,
237
+ it was enabled using ``anonymous: lazy ``
238
+
234
239
The security system is configured in ``config/packages/security.yaml ``. The *most *
235
240
important section is ``firewalls ``:
236
241
@@ -245,7 +250,8 @@ important section is ``firewalls``:
245
250
pattern : ^/(_(profiler|wdt)|css|images|js)/
246
251
security : false
247
252
main :
248
- anonymous : lazy
253
+ anonymous : true
254
+ lazy : true
249
255
250
256
.. code-block :: xml
251
257
@@ -264,8 +270,9 @@ important section is ``firewalls``:
264
270
pattern =" ^/(_(profiler|wdt)|css|images|js)/"
265
271
security =" false" />
266
272
267
- <firewall name =" main" >
268
- <anonymous lazy =" true" />
273
+ <firewall name =" main"
274
+ anonymous =" true"
275
+ lazy =" true" />
269
276
</firewall >
270
277
</config >
271
278
</srv : container >
@@ -280,7 +287,8 @@ important section is ``firewalls``:
280
287
'security' => false,
281
288
],
282
289
'main' => [
283
- 'anonymous' => 'lazy',
290
+ 'anonymous' => true,
291
+ 'lazy' => true,
284
292
],
285
293
],
286
294
]);
You can’t perform that action at this time.
0 commit comments