aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-09-11 20:17:42 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-09-11 20:17:42 +0200
commit9c08a891f9bb90bc3f23a575a734283c1ee00ba1 (patch)
treef5e90765bdd2b923cbd008722e12be25028bdf6d /src/Wallabag/CoreBundle/Controller
parent49e564ec159371d9fa751ba75f9f1c555d108179 (diff)
parentf1e29e69cb0ba5a0f05190c62e7a4afd43d03436 (diff)
downloadwallabag-9c08a891f9bb90bc3f23a575a734283c1ee00ba1.tar.gz
wallabag-9c08a891f9bb90bc3f23a575a734283c1ee00ba1.tar.zst
wallabag-9c08a891f9bb90bc3f23a575a734283c1ee00ba1.zip
Merge pull request #1397 from wallabag/v2-graby
Integrate graby
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r--src/Wallabag/CoreBundle/Controller/EntryController.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php
index a77489e2..b9e4e67e 100644
--- a/src/Wallabag/CoreBundle/Controller/EntryController.php
+++ b/src/Wallabag/CoreBundle/Controller/EntryController.php
@@ -6,7 +6,6 @@ use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
6use Symfony\Bundle\FrameworkBundle\Controller\Controller; 6use Symfony\Bundle\FrameworkBundle\Controller\Controller;
7use Symfony\Component\HttpFoundation\Request; 7use Symfony\Component\HttpFoundation\Request;
8use Wallabag\CoreBundle\Entity\Entry; 8use Wallabag\CoreBundle\Entity\Entry;
9use Wallabag\CoreBundle\Service\Extractor;
10use Wallabag\CoreBundle\Form\Type\NewEntryType; 9use Wallabag\CoreBundle\Form\Type\NewEntryType;
11use Wallabag\CoreBundle\Form\Type\EditEntryType; 10use Wallabag\CoreBundle\Form\Type\EditEntryType;
12use Wallabag\CoreBundle\Filter\EntryFilterType; 11use Wallabag\CoreBundle\Filter\EntryFilterType;
@@ -31,10 +30,7 @@ class EntryController extends Controller
31 $form->handleRequest($request); 30 $form->handleRequest($request);
32 31
33 if ($form->isValid()) { 32 if ($form->isValid()) {
34 $content = Extractor::extract($entry->getUrl()); 33 $entry = $this->get('wallabag_core.content_proxy')->updateEntry($entry, $entry->getUrl());
35
36 $entry->setTitle($content->getTitle());
37 $entry->setContent($content->getBody());
38 34
39 $em = $this->getDoctrine()->getManager(); 35 $em = $this->getDoctrine()->getManager();
40 $em->persist($entry); 36 $em->persist($entry);