LdapTools\Operation\Invoker\LdapOperationInvoker::connectIfNotBound PHP Метод

connectIfNotBound() защищенный Метод

If a connection is not bound (such as a lazy bind config) we need to force a connection.
protected connectIfNotBound ( LdapTools\Operation\LdapOperationInterface $operation )
$operation LdapTools\Operation\LdapOperationInterface
    protected function connectIfNotBound(LdapOperationInterface $operation)
    {
        if (!$this->connection->isBound() && !$operation instanceof AuthenticationOperation) {
            $this->connection->connect();
        }
    }