]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/WallabagBundle/Controller/EntryController.php
migrating legacy to symfony
[github/wallabag/wallabag.git] / src / WallabagBundle / Controller / EntryController.php
1 <?php
2
3 namespace WallabagBundle\Controller;
4
5 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
6 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
7 use WallabagBundle\Repository;
8
9 class EntryController extends Controller
10 {
11 /**
12 * @Route("/unread", name="unread")
13 */
14 public function unreadAction()
15 {
16 $repository = $this->getDoctrine()->getRepository('WallabagBundle:Entries');
17 $entries = $repository->findUnreadByUser(1);
18
19 return $this->render(
20 'WallabagBundle:Entry:entries.html.twig',
21 array('entries' => $entries)
22 );
23
24 }
25 }