+ /**
+ * @param Request $request
+ *
+ * @Route("/bookmarklet", name="bookmarklet")
+ *
+ * @return \Symfony\Component\HttpFoundation\Response
+ */
+ public function addEntryViaBookmarkletAction(Request $request)
+ {
+ $entry = new Entry($this->getUser());
+ $entry->setUrl($request->get('url'));
+ $this->updateEntry($entry);
+
+ return $this->redirect($this->generateUrl('homepage'));
+ }
+
+ /**
+ * @Route("/new", name="new")
+ *
+ * @return \Symfony\Component\HttpFoundation\Response
+ */
+ public function addEntryAction()
+ {
+ return $this->render('WallabagCoreBundle:Entry:new.html.twig');
+ }
+