diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-01-21 08:53:09 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-01-31 14:48:26 +0100 |
commit | 63e40f2d7c4074aff0be587c828eb511a6b7c878 (patch) | |
tree | 038959b20e15c60841f8f3584c99068f52460939 /src/Wallabag/CoreBundle/Helper | |
parent | 26975877d76a99f6a3153d3d3b4fc6c9f32687bc (diff) | |
download | wallabag-63e40f2d7c4074aff0be587c828eb511a6b7c878.tar.gz wallabag-63e40f2d7c4074aff0be587c828eb511a6b7c878.tar.zst wallabag-63e40f2d7c4074aff0be587c828eb511a6b7c878.zip |
Add CraueConfig for internal settings
Diffstat (limited to 'src/Wallabag/CoreBundle/Helper')
-rw-r--r-- | src/Wallabag/CoreBundle/Helper/EntriesExport.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/EntriesExport.php b/src/Wallabag/CoreBundle/Helper/EntriesExport.php index 31a80d6e..965a40b6 100644 --- a/src/Wallabag/CoreBundle/Helper/EntriesExport.php +++ b/src/Wallabag/CoreBundle/Helper/EntriesExport.php | |||
@@ -8,6 +8,7 @@ use JMS\Serializer\SerializerBuilder; | |||
8 | use PHPePub\Core\EPub; | 8 | use PHPePub\Core\EPub; |
9 | use PHPePub\Core\Structure\OPF\DublinCore; | 9 | use PHPePub\Core\Structure\OPF\DublinCore; |
10 | use Symfony\Component\HttpFoundation\Response; | 10 | use Symfony\Component\HttpFoundation\Response; |
11 | use Craue\ConfigBundle\Util\Config; | ||
11 | 12 | ||
12 | /** | 13 | /** |
13 | * This class doesn't have unit test BUT it's fully covered by a functional test with ExportControllerTest. | 14 | * This class doesn't have unit test BUT it's fully covered by a functional test with ExportControllerTest. |
@@ -27,12 +28,12 @@ class EntriesExport | |||
27 | </div'; | 28 | </div'; |
28 | 29 | ||
29 | /** | 30 | /** |
30 | * @param string $wallabagUrl Wallabag instance url | 31 | * @param Config $craueConfig CraueConfig instance to get wallabag instance url from database |
31 | * @param string $logoPath Path to the logo FROM THE BUNDLE SCOPE | 32 | * @param string $logoPath Path to the logo FROM THE BUNDLE SCOPE |
32 | */ | 33 | */ |
33 | public function __construct($wallabagUrl, $logoPath) | 34 | public function __construct(Config $craueConfig, $logoPath) |
34 | { | 35 | { |
35 | $this->wallabagUrl = $wallabagUrl; | 36 | $this->wallabagUrl = $craueConfig->get('wallabag_url'); |
36 | $this->logoPath = $logoPath; | 37 | $this->logoPath = $logoPath; |
37 | } | 38 | } |
38 | 39 | ||