Skip to content

Commit bca488e

Browse files
committed
2 parents 617effe + 6eb8c65 commit bca488e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: vormkracht10

src/Crawler/StaticCrawlObserver.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function __construct(ComponentFactory $components)
2020
/**
2121
* Called when the crawler will crawl the url.
2222
*/
23-
public function willCrawl(UriInterface $url): void
23+
public function willCrawl(UriInterface $url, ?string $linkText): void
2424
{
2525
//
2626
}
@@ -31,7 +31,8 @@ public function willCrawl(UriInterface $url): void
3131
public function crawled(
3232
UriInterface $url,
3333
ResponseInterface $response,
34-
UriInterface $foundOnUrl = null
34+
UriInterface $foundOnUrl = null,
35+
?string $linkText = null
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 = null
4648
): void {
4749
$this->components->error('Failed to crawl url: '.$url);
4850
}

0 commit comments

Comments
 (0)