[Security][DX] Allow omitting provider in firewall config, when each authenticator has a provider set explicitly #24980
Labels
Bug
DX
DX = Developer eXperience (anything that improves the experience of using Symfony)
Security
Status: Needs Review
Milestone
Given the following firewall config:
This config causes following deprecation notice:
Firewall "main" has no "provider" set but multiple providers exist. Using the first configured provider (in_memory) is deprecated since 3.4 and will throw an exception in 4.0, set the "provider" key on the firewall instead.
Because there is no "default" provider set as a child of the
main
key.However each authenticator has a provider set explicitly, so there is no need for the "default" provider.
It would be nice, if this kind of config is allowed (no deprecation and working in 4.0)
The text was updated successfully, but these errors were encountered: