private function getRequestOptions(Request $request)
    {
        $options = [
            'http_errors' => false,
            'synchronous' => true
        ];

        if ($request->getQuery()) {
            $options['query'] = array_merge($this->getDefaultQuery(), $request->getQuery());
        } else {
            $options['query'] = $this->getDefaultQuery();
        }
        if ($request->getParams())
            $options['json'] = $request->getParams();

        return $options;
    }
private function getRequestOptions(Request $request)
    {
        $options = [
            'http_errors' => false,
            'synchronous' => true
        ];

        if ($request->getQuery()) {
            $options['query'] = array_merge($this->getDefaultQuery(), $request->getQuery());
        } else {
            $options['query'] = $this->getDefaultQuery();
        }
        if ($request->getParams())
            $options['json'] = $request->getParams();

        return $options;
    }
private function getRequestOptions ( Request $ request ) { $ options = [ 'http_errors' => false , 'synchronous' => true ] ; if ( $ request -> getQuery ( ) ) { $ options [ 'query' ] = array_merge ( $ this -> getDefaultQuery ( ) , $ request -> getQuery ( ) ) ; } else { $ options [ 'query' ] = $ this -> getDefaultQuery ( ) ; } if ( $ request -> getParams ( ) ) $ options [ 'json' ] = $ request -> getParams ( ) ; return $ options ; }
Returns request options

@param Request $request
@return array
Returns request options