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:
- { name: monolog.logger, channel: wsse }
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
* and update the entry with what it found
* and update the entry with what it found.
*/
class ContentProxy
{
@ -20,7 +20,7 @@ class ContentProxy
/**
* 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 string $url Url to grab content for

View File

@ -68,8 +68,8 @@ class ContentProxyTest extends KernelTestCase
'open_graph' => array(
'og_title' => 'my OG title',
'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);