PHP Interface Spatie\Crawler\CrawlObserver

Afficher le fichier Open project: spatie/crawler Interface Usage Examples

Méthodes publiques

Méthode Description
finishedCrawling ( ) : void Called when the crawl has ended.
hasBeenCrawled ( Url $url, Psr\Http\Message\ResponseInterface | null $response, Url $foundOnUrl = null ) : void Called when the crawler has crawled the given url.
willCrawl ( Url $url ) : void Called when the crawler will crawl the url.

Method Details

finishedCrawling() public méthode

Called when the crawl has ended.
public finishedCrawling ( ) : void
Résultat void

hasBeenCrawled() public méthode

Called when the crawler has crawled the given url.
public hasBeenCrawled ( Url $url, Psr\Http\Message\ResponseInterface | null $response, Url $foundOnUrl = null ) : void
$url Url
$response Psr\Http\Message\ResponseInterface | null
$foundOnUrl Url
Résultat void

willCrawl() public méthode

Called when the crawler will crawl the url.
public willCrawl ( Url $url ) : void
$url Url
Résultat void