Skip to content

Commit a75020b

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: Minor tweak Adding `anonymous`
2 parents 86a526a + efce60b commit a75020b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

reference/configuration/security.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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,15 @@ If ``true``, the user is asked to authenticate before each call to the
6162
``isGranted()`` method in services and controllers or ``is_granted()`` from
6263
templates.
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
71+
the application actually accesses the ``User`` object (e.g. via a ``is_granted()``
72+
call in a template or ``isGranted()`` in a controller or service).
73+
6474
erase_credentials
6575
~~~~~~~~~~~~~~~~~
6676

0 commit comments

Comments
 (0)