DependencyInjection/Security/Factory/LdapFormLoginFactory.php
protected function createAuthProvider(ContainerBuilder $container, $id, $config, $userProviderId)
    {
        $provider = 'ldap_tools.security.user.ldap_user_provider.'.$id;
        $decorator = class_exists('Symfony\Component\DependencyInjection\ChildDefinition') ?
            'Symfony\Component\DependencyInjection\ChildDefinition' :
            'Symfony\Component\DependencyInjection\DefinitionDecorator';

        $container->setDefinition($provider, new $decorator('ldap_tools.security.authentication.ldap_authentication_provider'))
            ->replaceArgument(0, $id)
            ->replaceArgument(2, new Reference($userProviderId));

        return $provider;
    }
protected function createAuthProvider(ContainerBuilder $container, $id, $config, $userProviderId)
    {
        $provider = 'ldap_tools.security.user.ldap_user_provider.'.$id;
        $decorator = class_exists('Symfony\Component\DependencyInjection\ChildDefinition') ?
            'Symfony\Component\DependencyInjection\ChildDefinition' :
            'Symfony\Component\DependencyInjection\DefinitionDecorator';

        $container->setDefinition($provider, new $decorator('ldap_tools.security.authentication.ldap_authentication_provider'))
            ->replaceArgument(0, $id)
            ->replaceArgument(2, new Reference($userProviderId));

        return $provider;
    }
{@inheritdoc}