aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-11-03 18:01:25 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-11-03 18:01:25 +0100
commit001cc7168aa1a7e9b8290b9c29566c586ac8b511 (patch)
treed1818e81c9ebcfeeecb2acc90cf758f3646865d8 /src/Wallabag/ImportBundle
parent864c1dd23a4aa9e5f412302694d9303070dca6dc (diff)
downloadwallabag-001cc7168aa1a7e9b8290b9c29566c586ac8b511.tar.gz
wallabag-001cc7168aa1a7e9b8290b9c29566c586ac8b511.tar.zst
wallabag-001cc7168aa1a7e9b8290b9c29566c586ac8b511.zip
Cleanup
Diffstat (limited to 'src/Wallabag/ImportBundle')
-rw-r--r--src/Wallabag/ImportBundle/Command/ImportCommand.php5
-rw-r--r--src/Wallabag/ImportBundle/Consumer/AbstractConsumer.php1
2 files changed, 1 insertions, 5 deletions
diff --git a/src/Wallabag/ImportBundle/Command/ImportCommand.php b/src/Wallabag/ImportBundle/Command/ImportCommand.php
index 13f3dcb9..e423ffae 100644
--- a/src/Wallabag/ImportBundle/Command/ImportCommand.php
+++ b/src/Wallabag/ImportBundle/Command/ImportCommand.php
@@ -56,13 +56,8 @@ class ImportCommand extends ContainerAwareCommand
56 case 'instapaper': 56 case 'instapaper':
57 $import = $this->getContainer()->get('wallabag_import.instapaper.import'); 57 $import = $this->getContainer()->get('wallabag_import.instapaper.import');
58 break; 58 break;
59 case 'instapaper':
60 $wallabag = $this->getContainer()->get('wallabag_import.instapaper.import');
61 break;
62 case 'v1':
63 default: 59 default:
64 $import = $this->getContainer()->get('wallabag_import.wallabag_v1.import'); 60 $import = $this->getContainer()->get('wallabag_import.wallabag_v1.import');
65 break;
66 } 61 }
67 62
68 $import->setMarkAsRead($input->getOption('markAsRead')); 63 $import->setMarkAsRead($input->getOption('markAsRead'));
diff --git a/src/Wallabag/ImportBundle/Consumer/AbstractConsumer.php b/src/Wallabag/ImportBundle/Consumer/AbstractConsumer.php
index aa7ff914..fc175f67 100644
--- a/src/Wallabag/ImportBundle/Consumer/AbstractConsumer.php
+++ b/src/Wallabag/ImportBundle/Consumer/AbstractConsumer.php
@@ -17,6 +17,7 @@ abstract class AbstractConsumer
17 protected $em; 17 protected $em;
18 protected $userRepository; 18 protected $userRepository;
19 protected $import; 19 protected $import;
20 protected $eventDispatcher;
20 protected $logger; 21 protected $logger;
21 22
22 public function __construct(EntityManager $em, UserRepository $userRepository, AbstractImport $import, EventDispatcherInterface $eventDispatcher, LoggerInterface $logger = null) 23 public function __construct(EntityManager $em, UserRepository $userRepository, AbstractImport $import, EventDispatcherInterface $eventDispatcher, LoggerInterface $logger = null)