From c95af4553ebe43b5852594e4c164066d13be7d77 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 25 May 2020 11:48:26 +0200 Subject: [PATCH] [Security] Updated a deprecation message --- DependencyInjection/Security/Factory/AnonymousFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DependencyInjection/Security/Factory/AnonymousFactory.php b/DependencyInjection/Security/Factory/AnonymousFactory.php index 1feba8bc..2d67694e 100644 --- a/DependencyInjection/Security/Factory/AnonymousFactory.php +++ b/DependencyInjection/Security/Factory/AnonymousFactory.php @@ -68,7 +68,7 @@ public function addConfiguration(NodeDefinition $builder) ->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() ;