/** * Constructor. * * @param LoopInterface $eventLoop * @param array $options see {@link AbstractClient} for available options * @param LoggerInterface $log if argument is passed, AMQP communication will be recorded in debug level */ public function __construct(LoopInterface $eventLoop = null, array $options = [], LoggerInterface $log = null) { $options["async"] = true; parent::__construct($options, $log); if ($eventLoop === null) { $eventLoop = Factory::create(); } $this->eventLoop = $eventLoop; }
/** * Constructor. * * @param array $options */ public function __construct(array $options = []) { $options["async"] = false; parent::__construct($options); }