File tree 1 file changed +6
-6
lines changed
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:
1004
1004
.. _reference-security-lazy :
1005
1005
1006
1006
lazy
1007
- ~~~~~~~~~
1007
+ ~~~~
1008
1008
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):
1012
1012
1013
1013
.. configuration-block ::
1014
1014
@@ -1048,8 +1048,8 @@ if the application actually accesses the User object,
1048
1048
use Symfony\Config\SecurityConfig;
1049
1049
1050
1050
return static function (SecurityConfig $security): void {
1051
- $mainFirewall = $ security->firewall('main');
1052
- $mainFirewall ->lazy(true);
1051
+ $security->firewall('main')
1052
+ ->lazy(true);
1053
1053
// ...
1054
1054
};
1055
1055
You can’t perform that action at this time.
0 commit comments