diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller/ExportController.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/ExportController.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/ExportController.php b/src/Wallabag/CoreBundle/Controller/ExportController.php index c8ef49a2..944c755d 100644 --- a/src/Wallabag/CoreBundle/Controller/ExportController.php +++ b/src/Wallabag/CoreBundle/Controller/ExportController.php | |||
@@ -16,12 +16,15 @@ class ExportController extends Controller | |||
16 | /** | 16 | /** |
17 | * Gets one entry content. | 17 | * Gets one entry content. |
18 | * | 18 | * |
19 | * @param Entry $entry | 19 | * @param Entry $entry |
20 | * @param string $format | ||
20 | * | 21 | * |
21 | * @Route("/export/{id}.{format}", name="export_entry", requirements={ | 22 | * @Route("/export/{id}.{format}", name="export_entry", requirements={ |
22 | * "format": "epub|mobi|pdf|json|xml|txt|csv", | 23 | * "format": "epub|mobi|pdf|json|xml|txt|csv", |
23 | * "id": "\d+" | 24 | * "id": "\d+" |
24 | * }) | 25 | * }) |
26 | * | ||
27 | * @return \Symfony\Component\HttpFoundation\Response | ||
25 | */ | 28 | */ |
26 | public function downloadEntryAction(Entry $entry, $format) | 29 | public function downloadEntryAction(Entry $entry, $format) |
27 | { | 30 | { |
@@ -38,10 +41,15 @@ class ExportController extends Controller | |||
38 | /** | 41 | /** |
39 | * Export all entries for current user. | 42 | * Export all entries for current user. |
40 | * | 43 | * |
44 | * @param string $format | ||
45 | * @param string $category | ||
46 | * | ||
41 | * @Route("/export/{category}.{format}", name="export_entries", requirements={ | 47 | * @Route("/export/{category}.{format}", name="export_entries", requirements={ |
42 | * "format": "epub|mobi|pdf|json|xml|txt|csv", | 48 | * "format": "epub|mobi|pdf|json|xml|txt|csv", |
43 | * "category": "all|unread|starred|archive" | 49 | * "category": "all|unread|starred|archive" |
44 | * }) | 50 | * }) |
51 | * | ||
52 | * @return \Symfony\Component\HttpFoundation\Response | ||
45 | */ | 53 | */ |
46 | public function downloadEntriesAction($format, $category) | 54 | public function downloadEntriesAction($format, $category) |
47 | { | 55 | { |