]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Controller/EntryController.php
move WallabagBundle into Wallabag:CoreBundle
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Controller / EntryController.php
similarity index 90%
rename from src/WallabagBundle/Controller/EntryController.php
rename to src/Wallabag/CoreBundle/Controller/EntryController.php
index dc1876fac4416652a670599d2a59a46c347d7e22..2ebb416c654671e1b530f0b518c4d8e02072aa16 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 
-namespace WallabagBundle\Controller;
+namespace Wallabag\CoreBundle\Controller;
 
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
 use Symfony\Component\HttpFoundation\Request;
-use WallabagBundle\Repository;
-use WallabagBundle\Entity\Entries;
+use Wallabag\CoreBundle\Repository;
+use Wallabag\CoreBundle\Entity\Entries;
 use Wallabag\Wallabag\Tools;
 use Wallabag\Wallabag\Url;
 
@@ -47,7 +47,7 @@ class EntryController extends Controller
             return $this->redirect($this->generateUrl('homepage'));
         }
 
-        return $this->render('WallabagBundle:Entry:new.html.twig', array(
+        return $this->render('WallabagCoreBundle:Entry:new.html.twig', array(
             'form' => $form->createView(),
         ));
     }
@@ -60,11 +60,11 @@ class EntryController extends Controller
      */
     public function showUnreadAction()
     {
-        $repository = $this->getDoctrine()->getRepository('WallabagBundle:Entries');
+        $repository = $this->getDoctrine()->getRepository('WallabagCoreBundle:Entries');
         $entries = $repository->findUnreadByUser(1, 0);
 
         return $this->render(
-            'WallabagBundle:Entry:entries.html.twig',
+            'WallabagCoreBundle:Entry:entries.html.twig',
             array('entries' => $entries)
         );
     }
@@ -77,11 +77,11 @@ class EntryController extends Controller
      */
     public function showArchiveAction()
     {
-        $repository = $this->getDoctrine()->getRepository('WallabagBundle:Entries');
+        $repository = $this->getDoctrine()->getRepository('WallabagCoreBundle:Entries');
         $entries = $repository->findArchiveByUser(1, 0);
 
         return $this->render(
-            'WallabagBundle:Entry:entries.html.twig',
+            'WallabagCoreBundle:Entry:entries.html.twig',
             array('entries' => $entries)
         );
     }
@@ -94,11 +94,11 @@ class EntryController extends Controller
      */
     public function showStarredAction()
     {
-        $repository = $this->getDoctrine()->getRepository('WallabagBundle:Entries');
+        $repository = $this->getDoctrine()->getRepository('WallabagCoreBundle:Entries');
         $entries = $repository->findStarredByUser(1, 0);
 
         return $this->render(
-            'WallabagBundle:Entry:entries.html.twig',
+            'WallabagCoreBundle:Entry:entries.html.twig',
             array('entries' => $entries)
         );
     }
@@ -113,7 +113,7 @@ class EntryController extends Controller
     public function viewAction(Entries $entry)
     {
         return $this->render(
-            'WallabagBundle:Entry:entry.html.twig',
+            'WallabagCoreBundle:Entry:entry.html.twig',
             array('entry' => $entry)
         );
     }