3 namespace WallabagBundle\Controller
;
5 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route
;
6 use Symfony\Bundle\FrameworkBundle\Controller\Controller
;
7 use WallabagBundle\Repository
;
9 class EntryController
extends Controller
12 * @Route("/unread", name="unread")
14 public function unreadAction()
16 $repository = $this->getDoctrine()->getRepository('WallabagBundle:Entries');
17 $entries = $repository->findUnreadByUser(1);
20 'WallabagBundle:Entry:entries.html.twig',
21 array('entries' => $entries)