aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller
diff options
context:
space:
mode:
authorJeremy Benoist <j0k3r@users.noreply.github.com>2015-08-09 22:47:28 +0200
committerJeremy Benoist <j0k3r@users.noreply.github.com>2015-08-09 22:47:28 +0200
commit47cadf36c8f7c20ba1edf26e184637d33a52cf35 (patch)
treeb25f67a8d32c3d211e6d16dfe010805c3bdafc0e /src/Wallabag/CoreBundle/Controller
parent20a69dffe7e1caf01c12b2c39dbb2f9cb8093925 (diff)
parentd0b90fbe18da72dc09a0ef748fa178314f6657b6 (diff)
downloadwallabag-47cadf36c8f7c20ba1edf26e184637d33a52cf35.tar.gz
wallabag-47cadf36c8f7c20ba1edf26e184637d33a52cf35.tar.zst
wallabag-47cadf36c8f7c20ba1edf26e184637d33a52cf35.zip
Merge pull request #1292 from wallabag/v2-tags-route
Add tags list display
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r--src/Wallabag/CoreBundle/Controller/TagController.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/TagController.php b/src/Wallabag/CoreBundle/Controller/TagController.php
new file mode 100644
index 00000000..e448cea1
--- /dev/null
+++ b/src/Wallabag/CoreBundle/Controller/TagController.php
@@ -0,0 +1,31 @@
1<?php
2
3namespace Wallabag\CoreBundle\Controller;
4
5use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
6use Symfony\Bundle\FrameworkBundle\Controller\Controller;
7
8class TagController extends Controller
9{
10 /**
11 * Shows tags for current user.
12 *
13 * @Route("/tag/list", name="tag")
14 *
15 * @return \Symfony\Component\HttpFoundation\Response
16 */
17 public function showTagAction()
18 {
19 $tags = $this->getDoctrine()
20 ->getRepository('WallabagCoreBundle:Tag')
21 ->findTags($this->getUser()->getId());
22
23 return $this->render(
24 'WallabagCoreBundle:Tag:tags.html.twig',
25 array(
26 'tags' => $tags
27 )
28 );
29 }
30
31}