protected function buildBasePageIndexerRequest()
    {
        $request = $this->getPageIndexerRequest();
        $request->setParameter('loggingEnabled', $this->loggingEnabled);

        if (!empty($this->options['authorization.'])) {
            $request->setAuthorizationCredentials(
                $this->options['authorization.']['username'],
                $this->options['authorization.']['password']
            );
        }

        if (!empty($this->options['frontendDataHelper.']['headers.'])) {
            foreach ($this->options['frontendDataHelper.']['headers.'] as $headerValue) {
                $request->addHeader($headerValue);
            }
        }

        if (!empty($this->options['frontendDataHelper.']['requestTimeout'])) {
            $request->setTimeout((float)$this->options['frontendDataHelper.']['requestTimeout']);
        }

        return $request;
    }
protected function buildBasePageIndexerRequest()
    {
        $request = $this->getPageIndexerRequest();
        $request->setParameter('loggingEnabled', $this->loggingEnabled);

        if (!empty($this->options['authorization.'])) {
            $request->setAuthorizationCredentials(
                $this->options['authorization.']['username'],
                $this->options['authorization.']['password']
            );
        }

        if (!empty($this->options['frontendDataHelper.']['headers.'])) {
            foreach ($this->options['frontendDataHelper.']['headers.'] as $headerValue) {
                $request->addHeader($headerValue);
            }
        }

        if (!empty($this->options['frontendDataHelper.']['requestTimeout'])) {
            $request->setTimeout((float)$this->options['frontendDataHelper.']['requestTimeout']);
        }

        return $request;
    }
protected function buildBasePageIndexerRequest ( ) { $ request = $ this -> getPageIndexerRequest ( ) ; $ request -> setParameter ( 'loggingEnabled' , $ this -> loggingEnabled ) ; if ( ! empty ( $ this -> options [ 'authorization.' ] ) ) { $ request -> setAuthorizationCredentials ( $ this -> options [ 'authorization.' ] [ 'username' ] , $ this -> options [ 'authorization.' ] [ 'password' ] ) ; } if ( ! empty ( $ this -> options [ 'frontendDataHelper.' ] [ 'headers.' ] ) ) { foreach ( $ this -> options [ 'frontendDataHelper.' ] [ 'headers.' ] as $ headerValue ) { $ request -> addHeader ( $ headerValue ) ; } } if ( ! empty ( $ this -> options [ 'frontendDataHelper.' ] [ 'requestTimeout' ] ) ) { $ request -> setTimeout ( ( float ) $ this -> options [ 'frontendDataHelper.' ] [ 'requestTimeout' ] ) ; } return $ request ; }
Builds a base page indexer request with configured headers and other
parameters.

@return PageIndexerRequest Base page indexer request
Builds a base page indexer request with configured headers and other parameters .