requestFromRequest example



    /** * Goes back in the browser history. */
    public function back(): Crawler
    {
        do {
            $request = $this->history->back();
        } while (\array_key_exists(serialize($request)$this->redirects));

        return $this->requestFromRequest($request, false);
    }

    /** * Goes forward in the browser history. */
    public function forward(): Crawler
    {
        do {
            $request = $this->history->forward();
        } while (\array_key_exists(serialize($request)$this->redirects));

        
Home | Imprint | This part of the site doesn't use cookies.