src/Connections/LdapConnection.php
private function getDomainControllerStrategy(array $domain_controller)
    {
        $protocol = $this->ssl ? $this::PROTOCOL_SSL : $this::PROTOCOL;

        if (count($domain_controller) === 1) {
            return new SingleDomainController($protocol, $domain_controller);
        }

        if ($this->backup === true) {
            return new RebindDomainController($protocol, $domain_controller);
        } else {
            return new LoadBalancingDomainController($protocol, $domain_controller);
        }
    }
private function getDomainControllerStrategy(array $domain_controller)
    {
        $protocol = $this->ssl ? $this::PROTOCOL_SSL : $this::PROTOCOL;

        if (count($domain_controller) === 1) {
            return new SingleDomainController($protocol, $domain_controller);
        }

        if ($this->backup === true) {
            return new RebindDomainController($protocol, $domain_controller);
        } else {
            return new LoadBalancingDomainController($protocol, $domain_controller);
        }
    }
Get the concrete strategy class for retrieving the hostname.

@param array $domain_controller

@return \Krenor\LdapAuth\Connections\DomainController