1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-22 17:18:37 +00:00

migrating legacy to symfony

This commit is contained in:
Nicolas Lœuillet 2015-01-22 17:18:56 +01:00
parent 2b9fe72b39
commit 9d50517cea
31 changed files with 1825 additions and 20 deletions

View file

@ -0,0 +1,25 @@
<?php
namespace WallabagBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use WallabagBundle\Repository;
class EntryController extends Controller
{
/**
* @Route("/unread", name="unread")
*/
public function unreadAction()
{
$repository = $this->getDoctrine()->getRepository('WallabagBundle:Entries');
$entries = $repository->findUnreadByUser(1);
return $this->render(
'WallabagBundle:Entry:entries.html.twig',
array('entries' => $entries)
);
}
}