diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2015-09-28 19:35:33 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2015-09-28 19:35:33 +0200 |
commit | da3d4998c0972557952c83b610f8f45fdcd31b72 (patch) | |
tree | ca4f91e1b54c0db19e12663405cc30b9275817d9 /src/Wallabag/CoreBundle/Entity | |
parent | 34c2cc7a1a2b8f1ac606957096274b3998005ec0 (diff) | |
download | wallabag-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')
-rw-r--r-- | src/Wallabag/CoreBundle/Entity/Entry.php | 3 |
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; | |||
7 | use Symfony\Component\Validator\Constraints as Assert; | 7 | use Symfony\Component\Validator\Constraints as Assert; |
8 | use Hateoas\Configuration\Annotation as Hateoas; | 8 | use Hateoas\Configuration\Annotation as Hateoas; |
9 | use JMS\Serializer\Annotation\XmlRoot; | 9 | use JMS\Serializer\Annotation\XmlRoot; |
10 | use 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 | } |