Skip to content
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

Open
wants to merge 1 commit into
base: 6.4
Choose a base branch
from
Open

Conversation

94noni
Copy link
Contributor

@94noni 94noni commented Dec 10, 2024

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

@carsonbot carsonbot added this to the 6.4 milestone Dec 10, 2024
@MrYamous
Copy link
Contributor

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:
Copy link
Contributor

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 ?

Copy link
Contributor Author

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

Comment on lines +1125 to +1126
$mainFirewall = $security->firewall('main');
$mainFirewall->lazy(true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$mainFirewall = $security->firewall('main');
$mainFirewall->lazy(true);
$security->firewall('main')
->lazy(true);

What do you think about this syntax ?

Copy link
Contributor Author

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 :)

@94noni
Copy link
Contributor Author

94noni commented Dec 10, 2024

This option is (very) briefly mentioned here

indeed, that's the only ref on recent doc, but it feel very related to the doc context, not the security config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants