-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc(security): add firewall lazy option #20459
base: 6.4
Are you sure you want to change the base?
Conversation
This option is (very) briefly mentioned here but I think it would be a good idea to add more specific documentation :) |
@@ -1075,6 +1075,58 @@ the session must not be used when authenticating users: | |||
// ... | |||
}; | |||
|
|||
.. _reference-security-lazy: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that used somewhere or mandatory for any reason ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a simple copy/paste from "stateless" doc part for now :s
$mainFirewall = $security->firewall('main'); | ||
$mainFirewall->lazy(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$mainFirewall = $security->firewall('main'); | |
$mainFirewall->lazy(true); | |
$security->firewall('main') | |
->lazy(true); |
What do you think about this syntax ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, will cs fix if the PR is accepted and we decide how to document this option :)
indeed, that's the only ref on recent doc, but it feel very related to the doc context, not the security config |
on https://symfony.com/doc/4.x/reference/configuration/security.html, we can see the option anonymous: lazy
on actual maintained version of the doc, https://symfony.com/doc/6.4/reference/configuration/security.html and +
I cant find any reference to lazy
This PR tries to (re)document this option (next to stateless but feel free to challenge)
Please if it was removed on purposes, feel free to close but share a link/PR as I didnt find while searching