private function downloadPage(Link $link, &$process) { $response = null; try { $response = $this->downloader->download($link->getLinkHref(), $this->download_tries); } catch (DownloadException $e) { $link->setStatusCode(69); } $this->dispatcher->dispatch(CrawlerEvents::onPageDownload, new FilterPageResponseEvent($link, $response, $process)); return $response; }