This commit is contained in:
Jeremy Benoist 2015-09-10 22:00:53 +02:00
parent 558d9aabab
commit f1e29e69cb
3 changed files with 6 additions and 9 deletions

View file

@ -10,6 +10,3 @@ services:
tags: tags:
- { name: monolog.logger, channel: wsse } - { name: monolog.logger, channel: wsse }
arguments: ['@security.context', '@security.authentication.manager', '@logger'] arguments: ['@security.context', '@security.authentication.manager', '@logger']
wallabag_core.graby:
class: Graby\Graby

View file

@ -7,7 +7,7 @@ use Wallabag\CoreBundle\Entity\Entry;
/** /**
* This kind of proxy class take care of getting the content from an url * This kind of proxy class take care of getting the content from an url
* and update the entry with what it found * and update the entry with what it found.
*/ */
class ContentProxy class ContentProxy
{ {
@ -20,10 +20,10 @@ class ContentProxy
/** /**
* Fetch content using graby and hydrate given entry with results information. * Fetch content using graby and hydrate given entry with results information.
* In case we couldn't find content, we'll try to use Open Graph data * In case we couldn't find content, we'll try to use Open Graph data.
* *
* @param Entry $entry Entry to update * @param Entry $entry Entry to update
* @param string $url Url to grab content for * @param string $url Url to grab content for
* *
* @return Entry * @return Entry
*/ */

View file

@ -68,8 +68,8 @@ class ContentProxyTest extends KernelTestCase
'open_graph' => array( 'open_graph' => array(
'og_title' => 'my OG title', 'og_title' => 'my OG title',
'og_description' => 'OG desc', 'og_description' => 'OG desc',
'og_image' => 'http://3.3.3.3/cover.jpg' 'og_image' => 'http://3.3.3.3/cover.jpg',
) ),
)); ));
$proxy = new ContentProxy($graby); $proxy = new ContentProxy($graby);