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
{
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',