File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ Configuration
29
29
30
30
* `access_denied_url `_
31
31
* `always_authenticate_before_granting `_
32
+ * `anonymous `_
32
33
* `erase_credentials `_
33
34
* `hide_user_not_found `_
34
35
* `session_fixation_strategy `_
@@ -61,6 +62,19 @@ If ``true``, the user is asked to authenticate before each call to the
61
62
``isGranted() `` method in services and controllers or ``is_granted() `` from
62
63
templates.
63
64
65
+ anonymous
66
+ ~~~~~~~~~
67
+
68
+ **type **: ``string `` **default **: ``~ ``
69
+
70
+ When set to ``lazy ``, Symfony loads the user (and starts the session) only if the
71
+ application actually accesses the ``User `` object (e.g. via a ``is_granted() `` call
72
+ in a template or ``isGranted() `` in a controller or service.
73
+
74
+ .. versionadded :: 4.4
75
+
76
+ The option ``lazy `` was introduced in Symfony 4.4.
77
+
64
78
erase_credentials
65
79
~~~~~~~~~~~~~~~~~
66
80
@@ -554,7 +568,7 @@ logout_on_user_change
554
568
The ``logout_on_user_change `` option was deprecated in Symfony 4.1.
555
569
556
570
If ``false `` this option makes Symfony to not trigger a logout when the user has
557
- changed. Doing that is deprecated, so this option should set to ``true `` or
571
+ changed. Doing that is deprecated, so this option should be set to ``true `` or
558
572
unset to avoid getting deprecation messages.
559
573
560
574
The user is considered to have changed when the user class implements
You can’t perform that action at this time.
0 commit comments