]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Event/Subscriber/DownloadImagesSubscriber.php
Add translations & migration
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Event / Subscriber / DownloadImagesSubscriber.php
index 3f2d460c1ef7a3684f4e513336b881068070b77f..6fddcea9eb923ccca5b306ed4192ad86739ad5e5 100644 (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()