/** * @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); }