src/LdapTools/Operation/Invoker/LdapOperationInvoker.php
protected function getOperationHandler(LdapOperationInterface $operation)
    {
        foreach ($this->handler as $handler) {
            if ($handler->supports($operation)) {
                $handler->setConnection($this->connection);
                $handler->setEventDispatcher($this->dispatcher);

                return $handler;
            }
        }

        throw new LdapConnectionException(sprintf(
            'Operation "%s" with a class name "%s" does not have a supported operation handler.',
            $operation->getName(),
            get_class($operation)
        ));
    }
protected function getOperationHandler(LdapOperationInterface $operation)
    {
        foreach ($this->handler as $handler) {
            if ($handler->supports($operation)) {
                $handler->setConnection($this->connection);
                $handler->setEventDispatcher($this->dispatcher);

                return $handler;
            }
        }

        throw new LdapConnectionException(sprintf(
            'Operation "%s" with a class name "%s" does not have a supported operation handler.',
            $operation->getName(),
            get_class($operation)
        ));
    }
protected function getOperationHandler ( LdapOperationInterface $ operation ) { foreach ( $ this -> handler as $ handler ) { if ( $ handler -> supports ( $ operation ) ) { $ handler -> setConnection ( $ this -> connection ) ; $ handler -> setEventDispatcher ( $ this -> dispatcher ) ; return $ handler ; } } throw new LdapConnectionException ( sprintf ( 'Operation "%s" with a class name "%s" does not have a supported operation handler.' , $ operation -> getName ( ) , get_class ( $ operation ) ) ) ; }
Find and return a supported handler for the operation.

@param LdapOperationInterface $operation
@return \LdapTools\Operation\Handler\OperationHandlerInterface
@throws LdapConnectionException
Find and return a supported handler for the operation .