public function followRedirect() { if (empty($this->redirect)) { throw new \LogicException('The request was not redirected.'); } return $this->request('get', $this->redirect); }
/** * override to allow redirect history recording * * @see parent::followRedirect */ public function followRedirect() { if (!empty($this->redirect)) { $this->redirect_list[] = $this->redirect; } //if return parent::followRedirect(); }