Пример #1
0
 /**
  * Format the request for Guzzle
  *
  * @param  Request $request
  * @return array
  */
 public function getConfiguration(Request $request)
 {
     $this->request = $request;
     return ['headers' => $request->getHeaders()->all(), 'query' => $request->getParameters()->all()];
 }
Пример #2
0
 /**
  * @return ParameterBag
  */
 public function getHeaders()
 {
     return $this->request->getHeaders();
 }