2015-08-07 16:17:23 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Wallabag\CoreBundle\Controller;
|
|
|
|
|
|
|
|
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
|
|
|
|
|
|
|
class TagController extends Controller
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Shows tags for current user.
|
|
|
|
*
|
|
|
|
* @Route("/tag/list", name="tag")
|
|
|
|
*
|
|
|
|
* @return \Symfony\Component\HttpFoundation\Response
|
|
|
|
*/
|
|
|
|
public function showTagAction()
|
|
|
|
{
|
|
|
|
$tags = $this->getDoctrine()
|
|
|
|
->getRepository('WallabagCoreBundle:Tag')
|
|
|
|
->findTags($this->getUser()->getId());
|
|
|
|
|
|
|
|
return $this->render(
|
|
|
|
'WallabagCoreBundle:Tag:tags.html.twig',
|
|
|
|
array(
|
2015-08-20 05:53:55 +00:00
|
|
|
'tags' => $tags,
|
2015-08-07 16:17:23 +00:00
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|