public function getScrapClient()
    {
        if ($this->scrapClient === null){
            if($this->headlessBrowserEnabled === true){
                $scrapClient = CrawlingFactory::create(CrawlingFactory::TYPE_HEADLESS_BROWSER, $this->config);
            }else{
                $scrapClient = CrawlingFactory::create(CrawlingFactory::TYPE_GOUTTE, $this->config);
            }
            $this->setScrapClient($scrapClient);
        }        
        return $this->scrapClient;
    }
public function getScrapClient()
    {
        if ($this->scrapClient === null){
            if($this->headlessBrowserEnabled === true){
                $scrapClient = CrawlingFactory::create(CrawlingFactory::TYPE_HEADLESS_BROWSER, $this->config);
            }else{
                $scrapClient = CrawlingFactory::create(CrawlingFactory::TYPE_GOUTTE, $this->config);
            }
            $this->setScrapClient($scrapClient);
        }        
        return $this->scrapClient;
    }
public function getScrapClient ( ) { if ( $ this -> scrapClient === null ) { if ( $ this -> headlessBrowserEnabled === true ) { $ scrapClient = CrawlingFactory :: create ( CrawlingFactory :: TYPE_HEADLESS_BROWSER , $ this -> config ) ; } else { $ scrapClient = CrawlingFactory :: create ( CrawlingFactory :: TYPE_GOUTTE , $ this -> config ) ; } $ this -> setScrapClient ( $ scrapClient ) ; } return $ this -> scrapClient ; }
create and configure client used for scrapping
it will configure goutte client by default
@return CrawlingAdapterInterface
create and configure client used for scrapping it will configure goutte client by default