Esempio n. 1
0
 /**
  * @param Producer $producer
  * @param Consumer $consumer
  * @param DequeuerInterface $dequeuer
  */
 public function __construct(Producer $producer, Consumer $consumer, DequeuerInterface $dequeuer)
 {
     parent::__construct($producer, $consumer);
     $this->dequeuer = $dequeuer;
 }
Esempio n. 2
0
 /**
  * @param Producer $producer
  * @param Consumer $consumer
  * @param Database $database
  * @param Config $config
  */
 public function __construct(Producer $producer, Consumer $consumer, Database $database, Config $config)
 {
     parent::__construct($producer, $consumer);
     $this->database = $database;
     $this->config = $config;
 }