diff --git a/security/custom_authentication_provider.rst b/security/custom_authentication_provider.rst index f1867d74256..aefe41028f6 100644 --- a/security/custom_authentication_provider.rst +++ b/security/custom_authentication_provider.rst @@ -322,7 +322,7 @@ create a class which implements $providerId = 'security.authentication.provider.wsse.'.$id; $container ->setDefinition($providerId, new ChildDefinition(WsseProvider::class)) - ->replaceArgument(0, new Reference($userProvider)) + ->setArgument(0, new Reference($userProvider)) ; $listenerId = 'security.authentication.listener.wsse.'.$id;