aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller/ExportController.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-04-12 11:36:01 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-04-12 12:25:29 +0200
commit4094ea47712efbe58624ff74daeb1f77c9b0edcf (patch)
tree3d2c168092d0208e6ba888de969252a54bf0c6c1 /src/Wallabag/CoreBundle/Controller/ExportController.php
parent7eccbda99f16dc39ee01a0c81ab88293e9b268fd (diff)
downloadwallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.tar.gz
wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.tar.zst
wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.zip
Convert array + phpDoc
Thanks for https://github.com/thomasbachem/php-short-array-syntax-converter
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller/ExportController.php')
-rw-r--r--src/Wallabag/CoreBundle/Controller/ExportController.php10
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 {