Add translations & migration

This commit is contained in:
Jeremy Benoist
2016-10-31 13:29:33 +01:00
parent d1495dd0a4
commit aedd6ca0fd
15 changed files with 62 additions and 35 deletions

View File

@ -111,6 +111,8 @@ class DownloadImagesSubscriber implements EventSubscriber
/**
* Download all images from the html.
*
* @todo If we want to add async download, it should be done in that method
*
* @param Config $config
* @param Entry $entry
*
@ -120,12 +122,6 @@ class DownloadImagesSubscriber implements EventSubscriber
{
$this->downloadImages->setWallabagUrl($config->get('wallabag_url'));
// if ($config->get('download_images_with_rabbitmq')) {
// } else if ($config->get('download_images_with_redis')) {
// }
return $this->downloadImages->processHtml(
$entry->getContent(),
$entry->getUrl()
@ -135,6 +131,8 @@ class DownloadImagesSubscriber implements EventSubscriber
/**
* Download the preview picture.
*
* @todo If we want to add async download, it should be done in that method
*
* @param Config $config
* @param Entry $entry
*
@ -144,12 +142,6 @@ class DownloadImagesSubscriber implements EventSubscriber
{
$this->downloadImages->setWallabagUrl($config->get('wallabag_url'));
// if ($config->get('download_images_with_rabbitmq')) {
// } else if ($config->get('download_images_with_redis')) {
// }
return $this->downloadImages->processSingleImage(
$entry->getPreviewPicture(),
$entry->getUrl()