コード例 #1
0
 /**
  * 
  * @return WebsiteSitemapRetriever
  */
 protected function getSitemapRetriever()
 {
     if (is_null($this->sitemapRetriever)) {
         $this->sitemapRetriever = new WebsiteSitemapRetriever();
         $this->sitemapRetriever->getConfiguration()->setBaseRequest($this->getHttpClient()->get());
     }
     return $this->sitemapRetriever;
 }
コード例 #2
0
 /**
  * 
  * @return WebsiteSitemapRetriever
  */
 public function getSitemapRetriever()
 {
     if (is_null($this->sitemapRetriever)) {
         $this->sitemapRetriever = new WebsiteSitemapRetriever();
         $this->sitemapRetriever->getConfiguration()->setBaseRequest($this->getConfiguration()->getBaseRequest());
         $this->sitemapRetriever->getConfiguration()->setCookies($this->getConfiguration()->getCookies());
     }
     return $this->sitemapRetriever;
 }