This commit is contained in:
Jeremy Benoist
2016-11-03 18:01:25 +01:00
parent 864c1dd23a
commit 001cc7168a
7 changed files with 6 additions and 29 deletions

View File

@ -56,13 +56,8 @@ class ImportCommand extends ContainerAwareCommand
case 'instapaper':
$import = $this->getContainer()->get('wallabag_import.instapaper.import');
break;
case 'instapaper':
$wallabag = $this->getContainer()->get('wallabag_import.instapaper.import');
break;
case 'v1':
default:
$import = $this->getContainer()->get('wallabag_import.wallabag_v1.import');
break;
}
$import->setMarkAsRead($input->getOption('markAsRead'));

View File

@ -17,6 +17,7 @@ abstract class AbstractConsumer
protected $em;
protected $userRepository;
protected $import;
protected $eventDispatcher;
protected $logger;
public function __construct(EntityManager $em, UserRepository $userRepository, AbstractImport $import, EventDispatcherInterface $eventDispatcher, LoggerInterface $logger = null)