<?php

namespace ContainerWkda1hQ;

use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;

/*
 * @internal This class has been auto-generated by the Symfony Dependency Injection Component.
 */
class getLdapService extends App_KernelProdContainer
{
    /*
     * Gets the private 'Symfony\Component\Ldap\Ldap' shared service.
     *
     * @return \Symfony\Component\Ldap\Ldap
     */
    public static function do($container, $lazyLoad = true)
    {
        include_once \dirname(__DIR__, 3).'/vendor/symfony/ldap/LdapInterface.php';
        include_once \dirname(__DIR__, 3).'/vendor/symfony/ldap/Ldap.php';
        include_once \dirname(__DIR__, 3).'/vendor/symfony/ldap/Adapter/AdapterInterface.php';
        include_once \dirname(__DIR__, 3).'/vendor/symfony/ldap/Adapter/ExtLdap/Adapter.php';

        return $container->privates['Symfony\\Component\\Ldap\\Ldap'] = new \Symfony\Component\Ldap\Ldap(new \Symfony\Component\Ldap\Adapter\ExtLdap\Adapter(['host' => $container->getEnv('LDAP_HOST'), 'port' => $container->getEnv('LDAP_PORT'), 'encryption' => $container->getEnv('LDAP_ENCRYPTION'), 'options' => ['protocol_version' => $container->getEnv('LDAP_PROTOCOL_VERSION'), 'referrals' => $container->getEnv('LDAP_REFERRALS')]]));
    }
}
