diff options
Diffstat (limited to 'src/Wallabag/ImportBundle/Import/WallabagV1Import.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Import/WallabagV1Import.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Wallabag/ImportBundle/Import/WallabagV1Import.php b/src/Wallabag/ImportBundle/Import/WallabagV1Import.php index 68f0574f..393089d6 100644 --- a/src/Wallabag/ImportBundle/Import/WallabagV1Import.php +++ b/src/Wallabag/ImportBundle/Import/WallabagV1Import.php | |||
@@ -5,7 +5,6 @@ namespace Wallabag\ImportBundle\Import; | |||
5 | use Psr\Log\LoggerInterface; | 5 | use Psr\Log\LoggerInterface; |
6 | use Psr\Log\NullLogger; | 6 | use Psr\Log\NullLogger; |
7 | use Doctrine\ORM\EntityManager; | 7 | use Doctrine\ORM\EntityManager; |
8 | use Symfony\Component\Translation\TranslatorInterface; | ||
9 | use Wallabag\CoreBundle\Entity\Entry; | 8 | use Wallabag\CoreBundle\Entity\Entry; |
10 | use Wallabag\UserBundle\Entity\User; | 9 | use Wallabag\UserBundle\Entity\User; |
11 | use Wallabag\CoreBundle\Tools\Utils; | 10 | use Wallabag\CoreBundle\Tools\Utils; |
@@ -18,13 +17,11 @@ class WallabagV1Import implements ImportInterface | |||
18 | private $skippedEntries = 0; | 17 | private $skippedEntries = 0; |
19 | private $importedEntries = 0; | 18 | private $importedEntries = 0; |
20 | private $filepath; | 19 | private $filepath; |
21 | private $translator; | ||
22 | 20 | ||
23 | public function __construct(EntityManager $em, TranslatorInterface $translator) | 21 | public function __construct(EntityManager $em) |
24 | { | 22 | { |
25 | $this->em = $em; | 23 | $this->em = $em; |
26 | $this->logger = new NullLogger(); | 24 | $this->logger = new NullLogger(); |
27 | $this->translator = $translator; | ||
28 | } | 25 | } |
29 | 26 | ||
30 | public function setLogger(LoggerInterface $logger) | 27 | public function setLogger(LoggerInterface $logger) |
@@ -66,7 +63,7 @@ class WallabagV1Import implements ImportInterface | |||
66 | */ | 63 | */ |
67 | public function getDescription() | 64 | public function getDescription() |
68 | { | 65 | { |
69 | return $this->translator->trans('This importer will import all your wallabag v1 articles. On your config page, click on "JSON export" in the "Export your wallabag data" section. You will have a "wallabag-export-1-xxxx-xx-xx.json" file.'); | 66 | return 'This importer will import all your wallabag v1 articles. On your config page, click on "JSON export" in the "Export your wallabag data" section. You will have a "wallabag-export-1-xxxx-xx-xx.json" file.'; |
70 | } | 67 | } |
71 | 68 | ||
72 | /** | 69 | /** |