]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Controller/TagController.php
Merge pull request #1386 from wallabag/v2-refactor
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Controller / TagController.php
CommitLineData
3f3fbef1
NL
1<?php
2
3namespace Wallabag\CoreBundle\Controller;
4
5use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
6use Symfony\Bundle\FrameworkBundle\Controller\Controller;
3f3fbef1
NL
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(
8ce32af6 26 'tags' => $tags,
3f3fbef1
NL
27 )
28 );
29 }
3f3fbef1 30}