aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Entity/Entry.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2015-09-28 19:35:33 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2015-09-28 19:35:33 +0200
commitda3d4998c0972557952c83b610f8f45fdcd31b72 (patch)
treeca4f91e1b54c0db19e12663405cc30b9275817d9 /src/Wallabag/CoreBundle/Entity/Entry.php
parent34c2cc7a1a2b8f1ac606957096274b3998005ec0 (diff)
downloadwallabag-da3d4998c0972557952c83b610f8f45fdcd31b72.tar.gz
wallabag-da3d4998c0972557952c83b610f8f45fdcd31b72.tar.zst
wallabag-da3d4998c0972557952c83b610f8f45fdcd31b72.zip
Move readingTime & domainName in ContentProxy
So, everything is centralized in one place when we save a new entry.
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity/Entry.php')
-rw-r--r--src/Wallabag/CoreBundle/Entity/Entry.php3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php
index 7108889e..9e81ba12 100644
--- a/src/Wallabag/CoreBundle/Entity/Entry.php
+++ b/src/Wallabag/CoreBundle/Entity/Entry.php
@@ -7,7 +7,6 @@ use Doctrine\ORM\Mapping as ORM;
7use Symfony\Component\Validator\Constraints as Assert; 7use Symfony\Component\Validator\Constraints as Assert;
8use Hateoas\Configuration\Annotation as Hateoas; 8use Hateoas\Configuration\Annotation as Hateoas;
9use JMS\Serializer\Annotation\XmlRoot; 9use JMS\Serializer\Annotation\XmlRoot;
10use Wallabag\CoreBundle\Tools\Utils;
11 10
12/** 11/**
13 * Entry. 12 * Entry.
@@ -279,8 +278,6 @@ class Entry
279 public function setContent($content) 278 public function setContent($content)
280 { 279 {
281 $this->content = $content; 280 $this->content = $content;
282 $this->readingTime = Utils::getReadingTime($content);
283 $this->domainName = parse_url($this->url, PHP_URL_HOST);
284 281
285 return $this; 282 return $this;
286 } 283 }