aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller
diff options
context:
space:
mode:
authorAlexandr Danilov <bitbucket@modos189.ru>2015-08-10 12:27:12 +0300
committerAlexandr Danilov <bitbucket@modos189.ru>2015-08-10 12:27:12 +0300
commit4919584b8758b23e127536b686776c1c41b3d215 (patch)
tree80288df2d6588fd84d0d028fe0ea652131a48c9a /src/Wallabag/CoreBundle/Controller
parent946d6a512470613aa5ffa556b6547397064dd89f (diff)
parent47cadf36c8f7c20ba1edf26e184637d33a52cf35 (diff)
downloadwallabag-4919584b8758b23e127536b686776c1c41b3d215.tar.gz
wallabag-4919584b8758b23e127536b686776c1c41b3d215.tar.zst
wallabag-4919584b8758b23e127536b686776c1c41b3d215.zip
Merge remote-tracking branch 'origin/v2' into v2_fix_material
# Conflicts: # src/Wallabag/CoreBundle/Resources/views/themes/material/base.html.twig
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}