Skip to content

Commit c3f2a71

Browse files
authored
Update StaticCrawlObserver.php
1 parent 4fd1619 commit c3f2a71

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Crawler/StaticCrawlObserver.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ public function willCrawl(UriInterface $url, ?string $linkText): void
3131
public function crawled(
3232
UriInterface $url,
3333
ResponseInterface $response,
34-
UriInterface $foundOnUrl = null
34+
UriInterface $foundOnUrl = null,
35+
?string $linkText
3536
): void {
3637
$this->components->info('Crawled and cached url: '.$url);
3738
}
@@ -42,7 +43,8 @@ public function crawled(
4243
public function crawlFailed(
4344
UriInterface $url,
4445
RequestException $requestException,
45-
UriInterface $foundOnUrl = null
46+
UriInterface $foundOnUrl = null,
47+
?string $linkText
4648
): void {
4749
$this->components->error('Failed to crawl url: '.$url);
4850
}

0 commit comments

Comments
 (0)