File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -82,10 +82,16 @@ a new provider that chains the two together:
82
82
),
83
83
));
84
84
85
- Now, all firewalls without an explicitly configured user provider will use
86
- the ``chain_provider `` since it's the first specified. The ``chain_provider ``
87
- will, in turn, try to load the user from both the ``in_memory `` and ``user_db ``
88
- providers.
85
+ Now, all firewalls that explicitly define ``chain_provider `` as their user
86
+ provider will, in turn, try to load the user from both the ``in_memory `` and
87
+ ``user_db `` providers.
88
+
89
+ .. versionadded :: 3.4
90
+ In previous Symfony versions, firewalls that didn't define their user provider
91
+ explicitly, used the first existing provider (``chain_provider `` in this
92
+ example). However, auto-selecting the first user provider has been deprecated
93
+ in Symfony 3.4 and will throw an exception in 4.0. Always define the provider
94
+ used by the firewall when there are multiple providers.
89
95
90
96
You can also configure the firewall or individual authentication mechanisms
91
97
to use a specific provider. Again, unless a provider is specified explicitly,
You can’t perform that action at this time.
0 commit comments