/**
  * The constructor. Initializes the event manager.
  * @param EventManagerInterface $eventManager The event manager.
  */
 public function __construct(EventManagerInterface $eventManager)
 {
     parent::__construct();
     $this->eventManager = $eventManager;
 }
Beispiel #2
0
 /**
  * The constructor. Initializes the connection and the options.
  * @param AMQPConnection $connection The connection.
  * @param AMQPOptions $options The options.
  */
 public function __construct(AMQPConnection $connection, AMQPOptions $options)
 {
     parent::__construct();
     $this->connection = $connection;
     $this->options = $options;
 }
 /**
  * The constructor. Initializes the event dispatcher.
  * @param EventDispatcher $eventDispatcher The event dispatcher.
  */
 public function __construct(EventDispatcher $eventDispatcher)
 {
     parent::__construct();
     $this->eventDispatcher = $eventDispatcher;
 }