minor #36953 [Security] Updated a deprecation message (javiereguiluz)

This PR was merged into the 5.1 branch.

Discussion
----------

[Security] Updated a deprecation message

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #36951
| License       | MIT
| Doc PR        | -

Commits
-------

835712747d [Security] Updated a deprecation message
This commit is contained in:
Fabien Potencier 2020-05-25 12:02:56 +02:00
commit e7f40297e5

View File

@ -68,7 +68,7 @@ class AnonymousFactory implements SecurityFactoryInterface, AuthenticatorFactory
->then(function ($v) { return ['lazy' => true]; })
->end()
->children()
->booleanNode('lazy')->defaultFalse()->setDeprecated('symfony/security-bundle', '5.1', 'Using "anonymous: lazy" to make the firewall lazy is deprecated, use "lazy: true" instead.')->end()
->booleanNode('lazy')->defaultFalse()->setDeprecated('symfony/security-bundle', '5.1', 'Using "anonymous: lazy" to make the firewall lazy is deprecated, use "anonymous: true" and "lazy: true" instead.')->end()
->scalarNode('secret')->defaultNull()->end()
->end()
;