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

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

Find and return a supported handler for the operation.
protected getOperationHandler ( LdapTools\Operation\LdapOperationInterface $operation ) : LdapTools\Operation\Handler\OperationHandlerInterface
$operation LdapTools\Operation\LdapOperationInterface
Результат LdapTools\Operation\Handler\OperationHandlerInterface
    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)));
    }