src/LdapTools/LdapManager.php
public function addConnection(LdapConnectionInterface ...$connections)
    {
        foreach ($connections as $connection) {
            $this->domains[$connection->getConfig()->getDomainName()] = $connection->getConfig();
            $this->connections[$connection->getConfig()->getDomainName()] = $connection;
        }

        return $this;
    }
public function addConnection(LdapConnectionInterface ...$connections)
    {
        foreach ($connections as $connection) {
            $this->domains[$connection->getConfig()->getDomainName()] = $connection->getConfig();
            $this->connections[$connection->getConfig()->getDomainName()] = $connection;
        }

        return $this;
    }
public function addConnection ( LdapConnectionInterface ... $ connections ) { foreach ( $ connections as $ connection ) { $ this -> domains [ $ connection -> getConfig ( ) -> getDomainName ( ) ] = $ connection -> getConfig ( ) ; $ this -> connections [ $ connection -> getConfig ( ) -> getDomainName ( ) ] = $ connection ; } return $ this ; }
Explicitly add connections using already constructed connection objects.

@param Connection\LdapConnectionInterface[] $connections
@return $this
Explicitly add connections using already constructed connection objects .