- /**
- * Shows untagged articles for current user.
- *
- * @param Request $request
- * @param int $page
- *
- * @Route("/untagged/list/{page}", name="untagged", defaults={"page" = "1"})
- *
- * @return \Symfony\Component\HttpFoundation\Response
- */
- public function showUntaggedEntriesAction(Request $request, $page)
- {
- return $this->showEntries('untagged', $request, $page);
- }
-
- /**
- * Fetch content and update entry.
- * In case it fails, $entry->getContent will return an error message.
- *
- * @param Entry $entry
- * @param string $prefixMessage Should be the translation key: entry_saved or entry_reloaded
- */
- private function updateEntry(Entry $entry, $prefixMessage = 'entry_saved')
- {
- $message = 'flashes.entry.notice.' . $prefixMessage;
-
- try {
- $this->get('wallabag_core.content_proxy')->updateEntry($entry, $entry->getUrl());
- } catch (\Exception $e) {
- $this->get('logger')->error('Error while saving an entry', [
- 'exception' => $e,
- 'entry' => $entry,
- ]);
-
- $message = 'flashes.entry.notice.' . $prefixMessage . '_failed';
- }
-
- $this->get('session')->getFlashBag()->add('notice', $message);
- }
-