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
2929
3030* `access_denied_url `_
3131* `always_authenticate_before_granting `_
32+ * `anonymous `_
3233* `erase_credentials `_
3334* `hide_user_not_found `_
3435* `session_fixation_strategy `_
@@ -61,6 +62,19 @@ If ``true``, the user is asked to authenticate before each call to the
6162``isGranted() `` method in services and controllers or ``is_granted() `` from
6263templates.
6364
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+
6478erase_credentials
6579~~~~~~~~~~~~~~~~~
6680
@@ -554,7 +568,7 @@ logout_on_user_change
554568 The ``logout_on_user_change `` option was deprecated in Symfony 4.1.
555569
556570If ``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
558572unset to avoid getting deprecation messages.
559573
560574The user is considered to have changed when the user class implements
You can’t perform that action at this time.
0 commit comments