File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change
1
+ github : vormkracht10
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public function __construct(ComponentFactory $components)
20
20
/**
21
21
* Called when the crawler will crawl the url.
22
22
*/
23
- public function willCrawl (UriInterface $ url ): void
23
+ public function willCrawl (UriInterface $ url, ? string $ linkText ): void
24
24
{
25
25
//
26
26
}
@@ -31,7 +31,8 @@ public function willCrawl(UriInterface $url): void
31
31
public function crawled (
32
32
UriInterface $ url ,
33
33
ResponseInterface $ response ,
34
- UriInterface $ foundOnUrl = null
34
+ UriInterface $ foundOnUrl = null ,
35
+ ?string $ linkText = null
35
36
): void {
36
37
$ this ->components ->info ('Crawled and cached url: ' .$ url );
37
38
}
@@ -42,7 +43,8 @@ public function crawled(
42
43
public function crawlFailed (
43
44
UriInterface $ url ,
44
45
RequestException $ requestException ,
45
- UriInterface $ foundOnUrl = null
46
+ UriInterface $ foundOnUrl = null ,
47
+ ?string $ linkText = null
46
48
): void {
47
49
$ this ->components ->error ('Failed to crawl url: ' .$ url );
48
50
}
You can’t perform that action at this time.
0 commit comments