File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1004,11 +1004,11 @@ the session must not be used when authenticating users:
10041004 .. _reference-security-lazy :
10051005
10061006lazy
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
You can’t perform that action at this time.
0 commit comments