PHP Class Wallabag\ImportBundle\Consumer\AbstractConsumer

Datei anzeigen Open project: wallabag/wallabag

Protected Properties

Property Type Description
$em
$import
$logger
$userRepository

Public Methods

Method Description
__construct ( EntityManager $em, Wallabag\UserBundle\Repository\UserRepository $userRepository, AbstractImport $import, Psr\Log\LoggerInterface $logger = null )

Protected Methods

Method Description
handleMessage ( string $body ) : boolean Handle a message and save it.

Method Details

__construct() public method

public __construct ( EntityManager $em, Wallabag\UserBundle\Repository\UserRepository $userRepository, AbstractImport $import, Psr\Log\LoggerInterface $logger = null )
$em Doctrine\ORM\EntityManager
$userRepository Wallabag\UserBundle\Repository\UserRepository
$import Wallabag\ImportBundle\Import\AbstractImport
$logger Psr\Log\LoggerInterface

handleMessage() protected method

Handle a message and save it.
protected handleMessage ( string $body ) : boolean
$body string Message from the queue (in json)
return boolean

Property Details

$em protected_oe property

protected $em

$import protected_oe property

protected $import

$logger protected_oe property

protected $logger

$userRepository protected_oe property

protected $userRepository