aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Event/Subscriber/DownloadImagesSubscriber.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-10-31 13:29:33 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-10-31 13:29:33 +0100
commitaedd6ca0fd212abd07ec59c5fd58ea2ca99198c5 (patch)
treea004084e19819175502be86d80a1b4f691295aed /src/Wallabag/CoreBundle/Event/Subscriber/DownloadImagesSubscriber.php
parentd1495dd0a456f0e35a09fb68679ee51f8d17bfe4 (diff)
downloadwallabag-aedd6ca0fd212abd07ec59c5fd58ea2ca99198c5.tar.gz
wallabag-aedd6ca0fd212abd07ec59c5fd58ea2ca99198c5.tar.zst
wallabag-aedd6ca0fd212abd07ec59c5fd58ea2ca99198c5.zip
Add translations & migration
Diffstat (limited to 'src/Wallabag/CoreBundle/Event/Subscriber/DownloadImagesSubscriber.php')
-rw-r--r--src/Wallabag/CoreBundle/Event/Subscriber/DownloadImagesSubscriber.php16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/Wallabag/CoreBundle/Event/Subscriber/DownloadImagesSubscriber.php b/src/Wallabag/CoreBundle/Event/Subscriber/DownloadImagesSubscriber.php
index 3f2d460c..6fddcea9 100644
--- a/src/Wallabag/CoreBundle/Event/Subscriber/DownloadImagesSubscriber.php
+++ b/src/Wallabag/CoreBundle/Event/Subscriber/DownloadImagesSubscriber.php
@@ -111,6 +111,8 @@ class DownloadImagesSubscriber implements EventSubscriber
111 /** 111 /**
112 * Download all images from the html. 112 * Download all images from the html.
113 * 113 *
114 * @todo If we want to add async download, it should be done in that method
115 *
114 * @param Config $config 116 * @param Config $config
115 * @param Entry $entry 117 * @param Entry $entry
116 * 118 *
@@ -120,12 +122,6 @@ class DownloadImagesSubscriber implements EventSubscriber
120 { 122 {
121 $this->downloadImages->setWallabagUrl($config->get('wallabag_url')); 123 $this->downloadImages->setWallabagUrl($config->get('wallabag_url'));
122 124
123 // if ($config->get('download_images_with_rabbitmq')) {
124
125 // } else if ($config->get('download_images_with_redis')) {
126
127 // }
128
129 return $this->downloadImages->processHtml( 125 return $this->downloadImages->processHtml(
130 $entry->getContent(), 126 $entry->getContent(),
131 $entry->getUrl() 127 $entry->getUrl()
@@ -135,6 +131,8 @@ class DownloadImagesSubscriber implements EventSubscriber
135 /** 131 /**
136 * Download the preview picture. 132 * Download the preview picture.
137 * 133 *
134 * @todo If we want to add async download, it should be done in that method
135 *
138 * @param Config $config 136 * @param Config $config
139 * @param Entry $entry 137 * @param Entry $entry
140 * 138 *
@@ -144,12 +142,6 @@ class DownloadImagesSubscriber implements EventSubscriber
144 { 142 {
145 $this->downloadImages->setWallabagUrl($config->get('wallabag_url')); 143 $this->downloadImages->setWallabagUrl($config->get('wallabag_url'));
146 144
147 // if ($config->get('download_images_with_rabbitmq')) {
148
149 // } else if ($config->get('download_images_with_redis')) {
150
151 // }
152
153 return $this->downloadImages->processSingleImage( 145 return $this->downloadImages->processSingleImage(
154 $entry->getPreviewPicture(), 146 $entry->getPreviewPicture(),
155 $entry->getUrl() 147 $entry->getUrl()