| 1 | <?php |
||
| 12 | class Observer extends CrawlObserver |
||
| 13 | { |
||
| 14 | /** @var string */ |
||
| 15 | protected $entry; |
||
| 16 | |||
| 17 | /** @var \Spatie\Export\Destination */ |
||
| 18 | protected $destination; |
||
| 19 | |||
| 20 | public function __construct(string $entry, Destination $destination) |
||
| 21 | { |
||
| 22 | $this->entry = $entry; |
||
| 23 | $this->destination = $destination; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function crawled(UriInterface $url, ResponseInterface $response, ?UriInterface $foundOnUrl = null) |
||
| 36 | |||
| 37 | public function crawlFailed(UriInterface $url, RequestException $requestException, ?UriInterface $foundOnUrl = null) |
||
| 41 | |||
| 42 | protected function normalizePath(string $path) |
||
| 50 | } |
||
| 51 |