Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function __invoke(RequestException $exception, $index) |
||
19 | { |
||
20 | $crawlUrl = $this->crawler->getCrawlQueue()->getUrlById($index); |
||
21 | |||
22 | foreach ($this->crawler->getCrawlObservers() as $crawlObserver) { |
||
23 | $crawlObserver->crawlFailed( |
||
24 | $crawlUrl->url, |
||
25 | $exception, |
||
26 | $crawlUrl->foundOnUrl |
||
27 | ); |
||
28 | } |
||
29 | } |
||
30 | } |
||
31 |