Skip to content

Commit b1e2c53

Browse files
committed
Tweaks
1 parent be992fd commit b1e2c53

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

reference/configuration/security.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -1004,11 +1004,11 @@ the session must not be used when authenticating users:
10041004
.. _reference-security-lazy:
10051005

10061006
lazy
1007-
~~~~~~~~~
1007+
~~~~
10081008

1009-
Firewalls can configure a ``lazy`` boolean option in order to load the user and start the session only
1010-
if the application actually accesses the User object,
1011-
(e.g. via a is_granted() call in a template or isGranted() in a controller or service):
1009+
Firewalls can configure a ``lazy`` boolean option to load the user and start the
1010+
session only if the application actually accesses the User object, (e.g. calling
1011+
``is_granted()`` in a template or ``isGranted()`` in a controller or service):
10121012

10131013
.. configuration-block::
10141014

@@ -1048,8 +1048,8 @@ if the application actually accesses the User object,
10481048
use Symfony\Config\SecurityConfig;
10491049
10501050
return static function (SecurityConfig $security): void {
1051-
$mainFirewall = $security->firewall('main');
1052-
$mainFirewall->lazy(true);
1051+
$security->firewall('main')
1052+
->lazy(true);
10531053
// ...
10541054
};
10551055

0 commit comments

Comments
 (0)