Fixed @tcitworld's review
This commit is contained in:
parent
b1428a1cf8
commit
dc7fa8dfc6
@ -23,20 +23,16 @@ class EntriesExport
|
|||||||
private $entries = [];
|
private $entries = [];
|
||||||
private $author = 'wallabag';
|
private $author = 'wallabag';
|
||||||
private $language = '';
|
private $language = '';
|
||||||
private $footerTemplate = '<div style="text-align:center;">
|
|
||||||
<p>Produced by wallabag with %EXPORT_METHOD%</p>
|
|
||||||
<p>Please open <a href="https://github.com/wallabag/wallabag/issues">an issue</a> if you have trouble with the display of this E-Book on your device.</p>
|
|
||||||
</div>';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $wallabagUrl Wallabag instance url
|
* @param string $wallabagUrl Wallabag instance url
|
||||||
* @param string $logoPath Path to the logo FROM THE BUNDLE SCOPE
|
* @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->wallabagUrl = $wallabagUrl;
|
||||||
$this->logoPath = $logoPath;
|
$this->logoPath = $logoPath;
|
||||||
$this->translator = $translator;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -132,9 +132,9 @@ services:
|
|||||||
wallabag_core.helper.entries_export:
|
wallabag_core.helper.entries_export:
|
||||||
class: Wallabag\CoreBundle\Helper\EntriesExport
|
class: Wallabag\CoreBundle\Helper\EntriesExport
|
||||||
arguments:
|
arguments:
|
||||||
|
- "@translator"
|
||||||
- '%domain_name%'
|
- '%domain_name%'
|
||||||
- src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png
|
- src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png
|
||||||
- "@translator"
|
|
||||||
|
|
||||||
wallabag.operator.array.matches:
|
wallabag.operator.array.matches:
|
||||||
class: Wallabag\CoreBundle\Operator\PHP\Matches
|
class: Wallabag\CoreBundle\Operator\PHP\Matches
|
||||||
|
Loading…
x
Reference in New Issue
Block a user