Exemplo n.º 1
0
 /**
  * @param RequestInterface $request
  * 
  * @return $this;
  */
 public function authenticate(RequestInterface $request)
 {
     $request->setOption('auth', [$this->getLogin(), $this->getPassword()]);
     return $this;
 }
Exemplo n.º 2
0
 /**
  * @param RequestInterface $request
  *
  * @return $this
  */
 protected function mergeBuilderParams(RequestInterface $request)
 {
     if ($request->getMethod() == 'GET') {
         $request->setParams(array_merge($request->getParams(), $this->builder->toParams()));
     }
     return $this;
 }