-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Security] anonymous: lazy deprecation warning #13749
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
Comments
The doc needs to be update yes, but the recipe was already updated symfony/recipes#778, so you can fix this warning by executing |
Oh sorry for making the change and completely ignoring updating docs and recipes. Thanks @yceruto and @rcapile for taking care of that!
Please feel free to submit a PR. I don't think we need to explain anything here, a "new in 5.1" is usefull though. You can add it using this syntax: .. versionadded:: 5.1
The ``lazy: true`` option was introduced in Symfony 5.1. Prior to version 5.1,
it was enabled using ``anonymous: lazy`` |
done |
This PR was squashed before being merged into the 5.1 branch. Discussion ---------- [Security] anonymous: lazy deprecation warning After upgrade to symfony/security-bundle to 5.1 and I got the deprecation warning Since symfony/security-bundle 5.1: Using "anonymous: lazy" to make the firewall lazy is deprecated, use "anonymous: true" and "lazy: true" instead. #13749 Commits ------- 73d1789 [Security] anonymous: lazy deprecation warning
Fixed in #13750. Thanks! |
I upgrade to symfony/security-bundle to 5.1 and I got the deprecation warning
Since symfony/security-bundle 5.1: Using "anonymous: lazy" to make the firewall lazy is deprecated, use "anonymous: true" and "lazy: true" instead.
But there's nothing about this change in https://symfony.com/doc/current/security.html#a-authentication-firewalls
Sorry I can't make a PR because I believe it would require some explanation why it's now two options and a "New in Version 5.1" box, right?
The text was updated successfully, but these errors were encountered: