aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WallabagBundle/Controller/EntryController.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/WallabagBundle/Controller/EntryController.php')
-rw-r--r--src/WallabagBundle/Controller/EntryController.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/WallabagBundle/Controller/EntryController.php b/src/WallabagBundle/Controller/EntryController.php
new file mode 100644
index 00000000..0c0c1569
--- /dev/null
+++ b/src/WallabagBundle/Controller/EntryController.php
@@ -0,0 +1,25 @@
1<?php
2
3namespace WallabagBundle\Controller;
4
5use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
6use Symfony\Bundle\FrameworkBundle\Controller\Controller;
7use WallabagBundle\Repository;
8
9class 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}