Skip to content

Commit 71d42a5

Browse files
Adding anonymous
I'm not sure about `~` being the default - please double-check. The info is taken from https://symfony.com/blog/new-in-symfony-4-4-lazy-firewalls
1 parent d4bb765 commit 71d42a5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

reference/configuration/security.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Configuration
3232
* `erase_credentials`_
3333
* `hide_user_not_found`_
3434
* `session_fixation_strategy`_
35+
* `anonymous`_
3536

3637
**Advanced Options**:
3738

@@ -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
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 the
71+
application actually accesses the `User` object (e.g. via a `is_granted()` call in
72+
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+
6478
erase_credentials
6579
~~~~~~~~~~~~~~~~~
6680

0 commit comments

Comments
 (0)