]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Controller/EntryController.php
Add translations
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Controller / EntryController.php
index a78dd00cf7676926ee1399a80703045d69589ebc..c94b47f0db5e6f05d9926aa8cf09cbf1d4f559ea 100644 (file)
@@ -12,6 +12,7 @@ use Wallabag\CoreBundle\Entity\Entry;
 use Wallabag\CoreBundle\Form\Type\EntryFilterType;
 use Wallabag\CoreBundle\Form\Type\EditEntryType;
 use Wallabag\CoreBundle\Form\Type\NewEntryType;
+use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache;
 
 class EntryController extends Controller
 {
@@ -451,19 +452,19 @@ class EntryController extends Controller
     private function checkIfEntryAlreadyExists(Entry $entry)
     {
         return $this->get('wallabag_core.entry_repository')->findByUrlAndUserId($entry->getUrl(), $this->getUser()->getId());
-
     }
 
-    /*
+    /**
      * Share entry content.
      *
      * @param Entry $entry
      *
      * @Route("/share/{uuid}", requirements={"uuid" = ".+"}, name="share")
+     * @Cache(maxage="25200", public=true)
      *
      * @return \Symfony\Component\HttpFoundation\Response
      */
-    public function shareEntry(Entry $entry)
+    public function shareEntryAction(Entry $entry)
     {
         return $this->render(
             '@WallabagCore/themes/share.html.twig',