mirror of
https://github.com/wallabag/wallabag.git
synced 2024-06-26 00:50:44 +00:00
34 lines
814 B
PHP
34 lines
814 B
PHP
<?php
|
|
|
|
namespace Wallabag\CoreBundle\Controller;
|
|
|
|
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
|
|
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
|
use Symfony\Component\HttpFoundation\Request;
|
|
use Wallabag\CoreBundle\Entity\Tag;
|
|
|
|
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(
|
|
'tags' => $tags
|
|
)
|
|
);
|
|
}
|
|
|
|
}
|