CS
This commit is contained in:
parent
558d9aabab
commit
f1e29e69cb
@ -10,6 +10,3 @@ services:
|
||||
tags:
|
||||
- { name: monolog.logger, channel: wsse }
|
||||
arguments: ['@security.context', '@security.authentication.manager', '@logger']
|
||||
|
||||
wallabag_core.graby:
|
||||
class: Graby\Graby
|
||||
|
@ -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,10 +20,10 @@ 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
|
||||
* @param Entry $entry Entry to update
|
||||
* @param string $url Url to grab content for
|
||||
*
|
||||
* @return Entry
|
||||
*/
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user