Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk committed Nov 12, 2024
2 parents 617effe + 6eb8c65 commit bca488e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: vormkracht10
8 changes: 5 additions & 3 deletions src/Crawler/StaticCrawlObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct(ComponentFactory $components)
/**
* Called when the crawler will crawl the url.
*/
public function willCrawl(UriInterface $url): void
public function willCrawl(UriInterface $url, ?string $linkText): void
{
//
}
Expand All @@ -31,7 +31,8 @@ public function willCrawl(UriInterface $url): void
public function crawled(
UriInterface $url,
ResponseInterface $response,
UriInterface $foundOnUrl = null
UriInterface $foundOnUrl = null,
?string $linkText = null
): void {
$this->components->info('Crawled and cached url: '.$url);
}
Expand All @@ -42,7 +43,8 @@ public function crawled(
public function crawlFailed(
UriInterface $url,
RequestException $requestException,
UriInterface $foundOnUrl = null
UriInterface $foundOnUrl = null,
?string $linkText = null
): void {
$this->components->error('Failed to crawl url: '.$url);
}
Expand Down

0 comments on commit bca488e

Please sign in to comment.