Use doctrine event to download images

This commit is contained in:
Jeremy Benoist
2016-10-30 10:48:29 +01:00
parent 45fd7e09d7
commit 7f55941856
6 changed files with 401 additions and 132 deletions

View File

@ -75,12 +75,6 @@ class ContentProxy
$entry->setDomainName($domainName);
}
if (true) {
$this->logger->log('debug', 'Starting to download images');
$downloadImages = new DownloadImages($html, $url, $this->logger);
$html = $downloadImages->process();
}
$entry->setContent($html);
if (isset($content['open_graph']['og_image'])) {