Spatie\Crawler\CrawlObserver::finishedCrawling PHP 메소드

finishedCrawling() 공개 메소드

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

Usage Example

예제 #1
0
파일: Crawler.php 프로젝트: spatie/crawler
 /**
  * @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