src/LdapTools/Operation/Invoker/LdapOperationInvoker.php
protected function resetLdapControls(LdapOperationInterface $operation)
    {
        foreach ($operation->getControls() as $control) {
            $value = $control->getValue();
            $control->setValue($control->getResetValue());
            $this->connection->setControl($control);
            $control->setValue($value);
        }
    }
protected function resetLdapControls(LdapOperationInterface $operation)
    {
        foreach ($operation->getControls() as $control) {
            $value = $control->getValue();
            $control->setValue($control->getResetValue());
            $this->connection->setControl($control);
            $control->setValue($value);
        }
    }
protected function resetLdapControls ( LdapOperationInterface $ operation ) { foreach ( $ operation -> getControls ( ) as $ control ) { $ value = $ control -> getValue ( ) ; $ control -> setValue ( $ control -> getResetValue ( ) ) ; $ this -> connection -> setControl ( $ control ) ; $ control -> setValue ( $ value ) ; } }
Reset any specific LDAP controls used with this operation. This is to make sure they are not accidentally used in
future operations when it is not expected.

@param LdapOperationInterface $operation
Reset any specific LDAP controls used with this operation . This is to make sure they are not accidentally used in future operations when it is not expected .