aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Helper/ContentProxy.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Helper/ContentProxy.php')
-rw-r--r--src/Wallabag/CoreBundle/Helper/ContentProxy.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/ContentProxy.php b/src/Wallabag/CoreBundle/Helper/ContentProxy.php
index 7fb41393..dc6e1184 100644
--- a/src/Wallabag/CoreBundle/Helper/ContentProxy.php
+++ b/src/Wallabag/CoreBundle/Helper/ContentProxy.php
@@ -13,10 +13,12 @@ use Wallabag\CoreBundle\Tools\Utils;
13class ContentProxy 13class ContentProxy
14{ 14{
15 protected $graby; 15 protected $graby;
16 protected $tagger;
16 17
17 public function __construct(Graby $graby) 18 public function __construct(Graby $graby, RuleBasedTagger $tagger)
18 { 19 {
19 $this->graby = $graby; 20 $this->graby = $graby;
21 $this->tagger = $tagger;
20 } 22 }
21 23
22 /** 24 /**
@@ -59,6 +61,8 @@ class ContentProxy
59 $entry->setPreviewPicture($content['open_graph']['og_image']); 61 $entry->setPreviewPicture($content['open_graph']['og_image']);
60 } 62 }
61 63
64 $this->tagger->tag($entry);
65
62 return $entry; 66 return $entry;
63 } 67 }
64} 68}