diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-13 09:43:14 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-13 09:43:14 +0200 |
commit | f2e5fdc3666a2a6525b4202ab48df05efeebaf5c (patch) | |
tree | f559474e248a33c472fe0b260641866be5c0def3 /src/Wallabag/CoreBundle/Controller/ExportController.php | |
parent | a417b869237763ee115982d6367a82aa6174d74e (diff) | |
parent | 86732aa01cf0ad0fb5279f38ce75a9bedbbb66e1 (diff) | |
download | wallabag-f2e5fdc3666a2a6525b4202ab48df05efeebaf5c.tar.gz wallabag-f2e5fdc3666a2a6525b4202ab48df05efeebaf5c.tar.zst wallabag-f2e5fdc3666a2a6525b4202ab48df05efeebaf5c.zip |
Merge pull request #1916 from wallabag/cleanup
Convert array + phpDoc
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 | { |