Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function handleIndexClient(IndexClientInterface $client, $persist = false)
 {
     $this->links = [];
     $this->errors = [];
     while ($urls = $client->getNextIndexUrls()) {
         foreach ($urls as $url) {
             $link = new Link();
             $link->setUrl($url);
             $this->links[] = $link;
             if ($persist) {
                 $this->persistLink($link);
             }
         }
     }
     return $this->links;
 }