Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b1e2c53

Browse filesBrowse files
committed
Tweaks
1 parent be992fd commit b1e2c53
Copy full SHA for b1e2c53

File tree

Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed

‎reference/configuration/security.rst

Copy file name to clipboardExpand all lines: reference/configuration/security.rst
+6-6Lines changed: 6 additions & 6 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.