Esempio n. 1
0
 /**
  * SubscriberCommand constructor.
  *
  * @param Serializer               $serializer
  * @param QueueAliasResolver       $queueAliasResolver
  * @param EventDispatcherInterface $eventDispatcher
  * @param Redis                    $redis
  */
 public function __construct(Serializer $serializer, QueueAliasResolver $queueAliasResolver, EventDispatcherInterface $eventDispatcher, Redis $redis)
 {
     parent::__construct();
     $this->serializer = $serializer;
     $this->queueAliasResolver = $queueAliasResolver;
     $this->eventDispatcher = $eventDispatcher;
     $this->redis = $redis;
 }
Esempio n. 2
0
 /**
  * ConsumerCommand constructor.
  *
  * @param Consumer $consumer
  */
 public function __construct(Consumer $consumer)
 {
     parent::__construct();
     $this->consumer = $consumer;
 }
Esempio n. 3
0
 /**
  * PSubscriberCommand constructor.
  *
  * @param Serializer $serializer
  * @param Redis      $redis
  */
 public function __construct(Serializer $serializer, Redis $redis)
 {
     parent::__construct();
     $this->serializer = $serializer;
     $this->redis = $redis;
 }