diff --git a/security/custom_authentication_provider.rst b/security/custom_authentication_provider.rst index 81800cf195f..a49aba4e722 100644 --- a/security/custom_authentication_provider.rst +++ b/security/custom_authentication_provider.rst @@ -461,7 +461,7 @@ to service ids that do not exist yet: ``wsse.security.authentication.provider`` )) ->setPublic(false); - $container->setDefinition('wsse.security.authentication.listener', WsseListener::class) + $container->register('wsse.security.authentication.listener', WsseListener::class) ->setArguments(array( new Reference('security.token_storage'), new Reference('security.authentication.manager'),