diff --git a/src/Wallabag/CoreBundle/Helper/EntriesExport.php b/src/Wallabag/CoreBundle/Helper/EntriesExport.php
index 3e1cd5220..f43bc33d8 100644
--- a/src/Wallabag/CoreBundle/Helper/EntriesExport.php
+++ b/src/Wallabag/CoreBundle/Helper/EntriesExport.php
@@ -23,20 +23,16 @@ class EntriesExport
private $entries = [];
private $author = 'wallabag';
private $language = '';
- private $footerTemplate = '
-
Produced by wallabag with %EXPORT_METHOD%
-
Please open an issue if you have trouble with the display of this E-Book on your device.
-
';
/**
* @param string $wallabagUrl Wallabag instance url
* @param string $logoPath Path to the logo FROM THE BUNDLE SCOPE
*/
- public function __construct($wallabagUrl, $logoPath, TranslatorInterface $translator)
+ public function __construct(TranslatorInterface $translator, $wallabagUrl, $logoPath)
{
+ $this->translator = $translator;
$this->wallabagUrl = $wallabagUrl;
$this->logoPath = $logoPath;
- $this->translator = $translator;
}
/**
diff --git a/src/Wallabag/CoreBundle/Resources/config/services.yml b/src/Wallabag/CoreBundle/Resources/config/services.yml
index 6f8c47e17..caef2c8df 100644
--- a/src/Wallabag/CoreBundle/Resources/config/services.yml
+++ b/src/Wallabag/CoreBundle/Resources/config/services.yml
@@ -132,9 +132,9 @@ services:
wallabag_core.helper.entries_export:
class: Wallabag\CoreBundle\Helper\EntriesExport
arguments:
+ - "@translator"
- '%domain_name%'
- src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png
- - "@translator"
wallabag.operator.array.matches:
class: Wallabag\CoreBundle\Operator\PHP\Matches