Выполнение запроса к шлюзу.

@param \Tmconsulting\Uniteller\Http\HttpManagerInterface $httpManager
@param array $parameters
@return array
16730
public function execute(HttpManagerInterface $httpManager, array $parameters = [])
    {
        $response = $httpManager->request('unblock', 'POST', http_build_query($parameters));
        $xml      = new \SimpleXMLElement($response);

        $array = [];
        foreach ($xml->orders->order as $item) {
            $array[] = (new Order())
                ->setAddress(Uniteller\xml_get($item, 'address'))
                ->setApprovalCode(Uniteller\xml_get($item, 'approvalcode'))
                ->setBankName(Uniteller\xml_get($item, 'bankname'))
                ->setBillNumber(Uniteller\xml_get($item, 'billnumber'))
                ->setBookingcomId(Uniteller\xml_get($item, 'bookingcom_id'))
                ->setBookingcomPincode(Uniteller\xml_get($item, 'bookingcom_pincode'))
                ->setCardIdp(Uniteller\xml_get($item, 'card_idp'))
                ->setCardHolder(Uniteller\xml_get($item, 'cardholder'))
                ->setCardNumber(Uniteller\xml_get($item, 'cardnumber'))
                ->setCardType(Uniteller\xml_get($item, 'cardtype'))
                ->setComment(Uniteller\xml_get($item, 'comment'))
                ->setCurrency(Uniteller\xml_get($item, 'currency'))
                ->setCvc2((bool)Uniteller\xml_get($item, 'cvc2'))
                ->setDate(Uniteller\xml_get($item, 'date'))
                ->setEmail(Uniteller\xml_get($item, 'email'))
                ->setEMoneyType(Uniteller\xml_get($item, 'emoneytype'))
                ->setEOrderData(Uniteller\xml_get($item, 'eorderdata'))
                ->setErrorCode(Uniteller\xml_get($item, 'error_code'))
                ->setErrorComment(Uniteller\xml_get($item, 'error_comment'))
                ->setFirstName(Uniteller\xml_get($item, 'firstname'))
                ->setGdsPaymentPurposeId(Uniteller\xml_get($item, 'gds_payment_purpose_id'))
                ->setIData(Uniteller\xml_get($item, 'idata'))
                ->setIp(Uniteller\xml_get($item, 'ipaddress'))
                ->setLastName(Uniteller\xml_get($item, 'lastname'))
                ->setLoanId(Uniteller\xml_get($item, 'loan_id'))
                ->setMessage(Uniteller\xml_get($item, 'message'))
                ->setMiddleName(Uniteller\xml_get($item, 'middlename'))
                ->setNeedConfirm((bool) Uniteller\xml_get($item, 'need_confirm'))
                ->setOrderNumber(Uniteller\xml_get($item, 'ordernumber'))
                ->setParentOrderNumber(Uniteller\xml_get($item, 'parent_order_number'))
                ->setPaymentType(Uniteller\xml_get($item, 'paymenttype'))
                ->setPhone(Uniteller\xml_get($item, 'phone'))
                ->setPtCode(Uniteller\xml_get($item, 'pt_code'))
                ->setRecommendation(Uniteller\xml_get($item, 'recommendation'))
                ->setResponseCode(Uniteller\xml_get($item, 'response_code'))
                ->setStatus(Uniteller\xml_get($item, 'status'))
                ->setTotal(Uniteller\xml_get($item, 'total'))
                ->setPacketDate(Uniteller\xml_get($item, 'packetdate'))
            ;
        }

        return $array;
    }
979744
public function withParameters(array $parameters): self
    {
        $query = $this;

        foreach ($parameters as $key => $parameter) {
            $query = $query->withParameter($key, $parameter);
        }

        return $query;
    }
194605
public function removeParameters(array $parameters = null)
  {
    $this->parameters = array();

    if ($parameters) {
      $this->addParameters($parameters);
    }

    return $this;
  }
792095
public static function listAllCustomersAsync(array $parameters = [])
    {
        return self::listAllCustomersAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
505703
public function getMovieList(array $parameters = [], array $headers = [])
    {
        $data  = $this->getApi()->getMovieList($this->parseQueryParameters($parameters), $headers);

        return $this->getFactory()->createCollection($data);
    }
685938
public function generateRequests(ParametersManager $parManager)
    {
        $headers = $parManager->getChordParameters('fminor', 'header');
        $twig = new TwigEngine(__DIR__);
        $requests = array();
        foreach ($headers as $key => $header) {
            foreach ($header['parts'] as $part) {
                if (!$parManager->hasFeatureById($part, 'embeddedable')) {
                    throw new \InvalidArgumentException(
                        'parts should support be embeddedable'
                    );
                }
            }
            $request = new TemplateRequest();
            $type = $header['inline'] === true ?
                TemplateRequest::INLINE : TemplateRequest::INCLUDED;
            $request
                ->setId('fminor.header.'.$key)
                ->setType($type)
                ->setContent($twig->render('header.php.twig', array(
                        'name' => $key,
                        'parts' => $header['parts'], )
                        )
                    );
            $requests[] = $request;
        }

        return $requests;
    }
276171
public function createService(ServiceLocatorInterface $serviceManager)
    {
        $config = $serviceManager->get('Config');
        return new ModuleOptions(isset($config['cmsjquery']) ? $config['cmsjquery'] : []);
    }
509639
private function getSearchResults($parameters)
    {
        $searchRequest  = $this->requestBuilder->getSearchRequest($parameters);
        $searchResponse = $this->searchEngine->search($searchRequest);

        return $searchResponse;
    }
624698
public function get($uri, array $parameters = array(), $requestHeaders = array()) {
        try {
            return $this->executeGet($uri, $parameters, $requestHeaders);
        } catch (Unauthenticated $e) {
            $this->auth_token->reset();
            return $this->executeGet($uri, $parameters, $requestHeaders);
        }
    }
164659
public function createService(ServiceLocatorInterface $serviceManager)
    {
        /** @var \Doctrine\ORM\EntityManager $objectManager */
        $objectManager = $serviceManager->get('Doctrine\ORM\EntityManager');

        /** @var \Eye4web\Zf2Board\Options\ModuleOptionsInterface $options */
        $options = $serviceManager->get('Eye4web\Zf2Board\Options\ModuleOptions');

        $mapper = new PostMapper($objectManager, $options);

        return $mapper;
    }
849144
public function initialize(ExtensionManager $extensionManager) {
    /** @var MinkExtension $minkExtension */
    $minkExtension = $extensionManager->getExtension('mink');
    if (null !== $minkExtension) {
      $minkExtension->registerDriverFactory(new PhantomJSFactory());
    }
  }
59103
private function callRequestFor($name, $parameters)
    {
        if (! $this->getHttpManager()) {
            $httpClient = new GuzzleAdapter(new GuzzleClient());
            $this->setHttpManager(new HttpManager($httpClient, $this->getOptions()));
        }

        /** @var RequestInterface $request */
        $request = $this->{'get' . ucfirst($name) . 'Request'}();

        return $request->execute(
            $this->getHttpManager(),
            $this->getParameters($parameters)
        );
    }
565263
public function configureServiceManager(ServiceManager $serviceManager)
    {
        $configs               = $serviceManager->get('Config');
        $configs['parameters'] = array_merge(array(
            "monolog.logger.class"                                                  => "PPI\Framework\Log\Logger",
            "monolog.gelf.publisher.class"                                          => "Gelf\MessagePublisher",
            "monolog.handler.stream.class"                                          => "Monolog\Handler\StreamHandler",
            "monolog.handler.group.class"                                           => "Monolog\Handler\GroupHandler",
            "monolog.handler.buffer.class"                                          => "Monolog\Handler\BufferHandler",
            "monolog.handler.rotating_file.class"                                   => "Monolog\Handler\RotatingFileHandler",
            "monolog.handler.syslog.class"                                          => "Monolog\Handler\SyslogHandler",
            "monolog.handler.null.class"                                            => "Monolog\Handler\NullHandler",
            "monolog.handler.test.class"                                            => "Monolog\Handler\TestHandler",
            "monolog.handler.gelf.class"                                            => "Monolog\Handler\GelfHandler",
            "monolog.handler.firephp.class"                                         => "Symfony\Bridge\Monolog\Handler\FirePHPHandler",
            "monolog.handler.chromephp.class"                                       => "Symfony\Bridge\Monolog\Handler\ChromePhpHandler",
            "monolog.handler.debug.class"                                           => "Symfony\Bridge\Monolog\Handler\DebugHandler",
            "monolog.handler.swift_mailer.class"                                    => "Monolog\Handler\SwiftMailerHandler",
            "monolog.handler.native_mailer.class"                                   => "Monolog\Handler\NativeMailerHandler",
            "monolog.handler.socket.class"                                          => "Monolog\Handler\SocketHandler",
            "monolog.handler.pushover.class"                                        => "Monolog\Handler\PushoverHandler",
            "monolog.handler.fingers_crossed.class"                                 => "Monolog\Handler\FingersCrossedHandler",
            "monolog.handler.fingers_crossed.error_level_activation_strategy.class" => "Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy",
        ), $configs['parameters']);

        $config             = $this->processConfiguration($configs, $serviceManager);
        $handlersToChannels = array();

        if (isset($config['handlers'])) {
            $handlers = array();

            foreach ($config['handlers'] as $name => $handler) {
                $handlers[$handler['priority']][] = array(
                    'id'       => $this->buildHandler($serviceManager, $configs['parameters'], $name, $handler),
                    'channels' => isset($handler['channels']) ? $handler['channels'] : null,
                );
            }

            $sortedHandlers = array();
            foreach ($handlers as $priorityHandlers) {
                foreach (array_reverse($priorityHandlers) as $handler) {
                    $sortedHandlers[] = $handler;
                }
            }

            foreach ($sortedHandlers as $handler) {
                if (!in_array($handler['id'], $this->nestedHandlers)) {
                    $handlersToChannels[$handler['id']] = $handler['channels'];
                }
            }
        }

        $loggerClass = $configs['parameters']['monolog.logger.class'];
        $serviceManager->setFactory('monolog.logger', function ($serviceManager) use ($loggerClass, $handlersToChannels) {
            $logger = new $loggerClass('app');
            foreach ($handlersToChannels as $handler => $channels) {
                $logger->pushHandler($serviceManager->get($handler));
            }

            return $logger;
        });
    }
378980
protected function resolveHeaders(array $parameters)
    {
        $headers = [];
        foreach ($parameters as $key => $value) {
            if (strpos($key, 'HTTP_') === 0) {
                $headers[substr($key, 5)] = $value;
            } elseif (in_array($key, array('CONTENT_LENGTH', 'CONTENT_MD5', 'CONTENT_TYPE'))) {
                $headers[$key] = $value;
            }
        }

        return $headers;
    }
648941
protected function passGetScope(array $parameters): ?array
    {
        $scope = $this->passReadStringValue($parameters, 'scope');

        return empty($scope) === false ? explode(' ', $scope) : null;
    }
542483
public function createFileManager(array $parameters, $driver, $dir_path = null)
    {
        $file_manager = new FileManager($parameters, $driver, $this->container);
        $this->file_manager = $file_manager;
        $file_manager->setDirPaths($dir_path);
        $this->setDisplayType();
        return $file_manager;
    }
54075
public static function listAllStripeGatewaysAsync(array $parameters = [])
    {
        return self::listAllStripeGatewaysAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }