Skip to content

Conversation

@rcapile
Copy link
Contributor

@rcapile rcapile commented Jun 3, 2020

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

@xabbuh
Copy link
Member

xabbuh commented Jun 4, 2020

👍 Could you update the other config formats too?

@xabbuh xabbuh linked an issue Jun 4, 2020 that may be closed by this pull request
@rcapile
Copy link
Contributor Author

rcapile commented Jun 4, 2020

I always forget about them.

But I never used XML (in Symfony configuration). Would that be right?

<firewall name="main"
    anonymous="true"
    lazy="true"/>

Copy link
Member

@wouterj wouterj left a comment

Choose a reason for hiding this comment

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

Yes, looks perfect. Thanks for your quick reactions!

@javiereguiluz
Copy link
Member

Rodrigo, thanks and congrats on your first Symfony Docs contribution!

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.

[Security] anonymous: lazy deprecation warning

5 participants