Symfony\Component\BrowserKit\Client::followRedirect PHP Méthode

followRedirect() public méthode

Follow redirects?
public followRedirect ( ) : Crawler
Résultat Symfony\Component\DomCrawler\Crawler
    public function followRedirect()
    {
        if (empty($this->redirect)) {
            throw new \LogicException('The request was not redirected.');
        }

        return $this->request('get', $this->redirect);
    }

Usage Example

Exemple #1
0
 /**
  *  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();
 }
All Usage Examples Of Symfony\Component\BrowserKit\Client::followRedirect