*/ public function execute(Article $article): array { try { $html = HttpFetcher::fetchHtml($article->url); $parser = ArticleParserFactory::getParser($article->url); return $parser->extractData($html); } catch (Exception $e) { $this->logSaver->error('Exception while fetching article data', null, [ 'url' => $article->url, 'error' => $e->getMessage(), ]); return []; } } }