aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Helper/ContentProxy.php
diff options
context:
space:
mode:
authorKévin Gomez <contact@kevingomez.fr>2015-10-11 16:54:21 +0200
committerKévin Gomez <contact@kevingomez.fr>2015-11-11 16:23:49 +0100
commitc3510620ad0718d2ab1f856e3a838360a5ade314 (patch)
tree78f42dd9d10c742c0b362439824d6d0c5bbe1fc1 /src/Wallabag/CoreBundle/Helper/ContentProxy.php
parent0a0c600887dde4cc755de0862a3301830c415882 (diff)
downloadwallabag-c3510620ad0718d2ab1f856e3a838360a5ade314.tar.gz
wallabag-c3510620ad0718d2ab1f856e3a838360a5ade314.tar.zst
wallabag-c3510620ad0718d2ab1f856e3a838360a5ade314.zip
PoC of rule-based tagging
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}