Property | Type | Description | |
---|---|---|---|
$contentProxy | |||
$em | |||
$importedEntries | |||
$logger | |||
$markAsRead | |||
$producer | |||
$queuedEntries | |||
$skippedEntries | |||
$user |
Method | Description | |
---|---|---|
__construct ( |
||
getMarkAsRead ( ) | Get whether articles must be all marked as read. | |
getSummary ( ) | ||
parseEntry ( array $importedEntry ) : |
Parse one entry. | |
setLogger ( Psr\Log\LoggerInterface $logger ) | ||
setMarkAsRead ( boolean $markAsRead ) | Set whether articles must be all marked as read. | |
setProducer ( OldSound\RabbitMqBundle\RabbitMq\ProducerInterface $producer ) | Set RabbitMQ/Redis Producer to send each entry to a queue. | |
setUser ( |
Set current user. |
Method | Description | |
---|---|---|
fetchContent ( |
Fetch content from the ContentProxy (using graby). | |
parseEntries ( $entries ) | Parse and insert all given entries. | |
parseEntriesForProducer ( array $entries ) | Parse entries and send them to the queue. | |
setEntryAsRead ( array $importedEntry ) : array | Set current imported entry to archived / read. |
public __construct ( |
||
$em | ||
$contentProxy |
protected fetchContent ( |
||
$entry | Entry to update | |
$url | string | Url to grab content for |
$content | array | An array with AT LEAST keys title, html, url, language & content_type to skip the fetchContent from the url |
return |
public getMarkAsRead ( ) |
protected parseEntries ( $entries ) | ||
$entries |
protected parseEntriesForProducer ( array $entries ) | ||
$entries | array |
abstract public parseEntry ( array $importedEntry ) : |
||
$importedEntry | array | |
return |
abstract protected setEntryAsRead ( array $importedEntry ) : array | ||
$importedEntry | array | |
return | array |
public setLogger ( Psr\Log\LoggerInterface $logger ) | ||
$logger | Psr\Log\LoggerInterface |
public setMarkAsRead ( boolean $markAsRead ) | ||
$markAsRead | boolean |
public setProducer ( OldSound\RabbitMqBundle\RabbitMq\ProducerInterface $producer ) | ||
$producer | OldSound\RabbitMqBundle\RabbitMq\ProducerInterface |
public setUser ( |
||
$user |