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:
parent
2b9fe72b39
commit
9d50517cea
31 changed files with 1825 additions and 20 deletions
25
src/WallabagBundle/Controller/EntryController.php
Normal file
25
src/WallabagBundle/Controller/EntryController.php
Normal 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)
|
||||
);
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue