core-bundle/src/DependencyInjection/Security/ContaoLoginFactory.php
protected function createAuthProvider(ContainerBuilder $container, $id, $config, $userProviderId): string
    {
        $provider = 'contao.security.authentication_provider.'.$id;

        $container
            ->setDefinition($provider, new ChildDefinition('contao.security.authentication_provider'))
            ->replaceArgument(0, new Reference($userProviderId))
            ->replaceArgument(1, new Reference('security.user_checker.'.$id))
            ->replaceArgument(2, $id)
            ->addArgument(
                [
                    'lock_period' => $config['lock_period'],
                    'login_attempts' => $config['login_attempts'],
                ]
            )
        ;

        return $provider;
    }
protected function createAuthProvider(ContainerBuilder $container, $id, $config, $userProviderId): string
    {
        $provider = 'contao.security.authentication_provider.'.$id;

        $container
            ->setDefinition($provider, new ChildDefinition('contao.security.authentication_provider'))
            ->replaceArgument(0, new Reference($userProviderId))
            ->replaceArgument(1, new Reference('security.user_checker.'.$id))
            ->replaceArgument(2, $id)
            ->addArgument(
                [
                    'lock_period' => $config['lock_period'],
                    'login_attempts' => $config['login_attempts'],
                ]
            )
        ;

        return $provider;
    }
{@inheritdoc}