From 73d1789fe817dd9fabfd97131134429c65b42708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Capil=C3=A9?= Date: Wed, 3 Jun 2020 20:16:53 -0300 Subject: [PATCH] [Security] anonymous: lazy deprecation warning --- security.rst | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/security.rst b/security.rst index 584db4b78b5..85070389f62 100644 --- a/security.rst +++ b/security.rst @@ -231,6 +231,11 @@ You can manually encode a password by running: 3a) Authentication & Firewalls ------------------------------ +.. versionadded:: 5.1 + + The ``lazy: true`` option was introduced in Symfony 5.1. Prior to version 5.1, + it was enabled using ``anonymous: lazy`` + The security system is configured in ``config/packages/security.yaml``. The *most* important section is ``firewalls``: @@ -245,7 +250,8 @@ important section is ``firewalls``: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false main: - anonymous: lazy + anonymous: true + lazy: true .. code-block:: xml @@ -264,8 +270,9 @@ important section is ``firewalls``: pattern="^/(_(profiler|wdt)|css|images|js)/" security="false"/> - - + @@ -280,7 +287,8 @@ important section is ``firewalls``: 'security' => false, ], 'main' => [ - 'anonymous' => 'lazy', + 'anonymous' => true, + 'lazy' => true, ], ], ]);