namespace Wallabag\CoreBundle\Event\Subscriber;
-use Symfony\Component\EventDispatcher\EventSubscriberInterface;
+use Doctrine\ORM\EntityManager;
use Psr\Log\LoggerInterface;
-use Wallabag\CoreBundle\Helper\DownloadImages;
+use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Wallabag\CoreBundle\Entity\Entry;
-use Wallabag\CoreBundle\Event\EntrySavedEvent;
use Wallabag\CoreBundle\Event\EntryDeletedEvent;
-use Doctrine\ORM\EntityManager;
+use Wallabag\CoreBundle\Event\EntrySavedEvent;
+use Wallabag\CoreBundle\Helper\DownloadImages;
class DownloadImagesSubscriber implements EventSubscriberInterface
{
/**
* Download images and updated the data into the entry.
- *
- * @param EntrySavedEvent $event
*/
public function onEntrySaved(EntrySavedEvent $event)
{
/**
* Remove images related to the entry.
- *
- * @param EntryDeletedEvent $event
*/
public function onEntryDeleted(EntryDeletedEvent $event)
{
*
* @todo If we want to add async download, it should be done in that method
*
- * @param Entry $entry
- *
* @return string|false False in case of async
*/
private function downloadImages(Entry $entry)
*
* @todo If we want to add async download, it should be done in that method
*
- * @param Entry $entry
- *
* @return string|false False in case of async
*/
private function downloadPreviewImage(Entry $entry)