aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Helper/EntriesExport.php
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2017-01-22 12:51:14 +0100
committerThomas Citharel <tcit@tcit.fr>2017-01-22 12:51:14 +0100
commit8303b037fb4e64b542f6f755828b999fdf6eebb0 (patch)
tree8348c7e09ad2a59bf86120c85ad26d4b003848b5 /src/Wallabag/CoreBundle/Helper/EntriesExport.php
parentafaee1cc0a0e2902e9cd9c0117e9aa6f90fdf662 (diff)
downloadwallabag-8303b037fb4e64b542f6f755828b999fdf6eebb0.tar.gz
wallabag-8303b037fb4e64b542f6f755828b999fdf6eebb0.tar.zst
wallabag-8303b037fb4e64b542f6f755828b999fdf6eebb0.zip
add cli export
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'src/Wallabag/CoreBundle/Helper/EntriesExport.php')
-rw-r--r--src/Wallabag/CoreBundle/Helper/EntriesExport.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/EntriesExport.php b/src/Wallabag/CoreBundle/Helper/EntriesExport.php
index 4bf292a4..93c01fcb 100644
--- a/src/Wallabag/CoreBundle/Helper/EntriesExport.php
+++ b/src/Wallabag/CoreBundle/Helper/EntriesExport.php
@@ -89,6 +89,11 @@ class EntriesExport
89 throw new \InvalidArgumentException(sprintf('The format "%s" is not yet supported.', $format)); 89 throw new \InvalidArgumentException(sprintf('The format "%s" is not yet supported.', $format));
90 } 90 }
91 91
92 public function exportJsonData()
93 {
94 return $this->prepareSerializingContent('json');
95 }
96
92 /** 97 /**
93 * Use PHPePub to dump a .epub file. 98 * Use PHPePub to dump a .epub file.
94 * 99 *