for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spatie\Crawler\Handlers;
use GuzzleHttp\Exception\RequestException;
class CrawlRequestFailed extends CrawlRequestFailedAbstract
{
public function __invoke(RequestException $exception, $index)
$crawlUrl = $this->crawler->getCrawlQueue()->getUrlById($index);
$this->crawler->getCrawlObservers()->crawlFailed($crawlUrl, $exception);
}