Spatie\Crawler\CrawlObserver::finishedCrawling PHP Method

finishedCrawling() public method

Called when the crawl has ended.
public finishedCrawling ( ) : void
return void
    public function finishedCrawling();

Usage Example

Example #1
0
 /**
  * @param \Spatie\Crawler\Url|string $baseUrl
  */
 public function startCrawling($baseUrl)
 {
     if (!$baseUrl instanceof Url) {
         $baseUrl = Url::create($baseUrl);
     }
     $this->baseUrl = $baseUrl;
     $crawlUrl = CrawlUrl::create($baseUrl);
     $this->crawlQueue->add($crawlUrl);
     $this->startCrawlingQueue();
     $this->crawlObserver->finishedCrawling();
 }
All Usage Examples Of Spatie\Crawler\CrawlObserver::finishedCrawling