Exemplo n.º 1
0
 /**
  * @param $url
  * @param $currentLevel
  * @throws loader\LoaderException
  * @return array
  */
 private function processUrl($url, $currentLevel)
 {
     $html = $this->loader->load($url);
     $normalizedUrls = UrlHelper::normalizeUrls($this->parser->getUrls($html), $this->mainPage, $url);
     return $this->storage->add($normalizedUrls, $currentLevel);
 }