/** * @param AbstractBroker $broker * * @return AMQPSocketConnection */ private static function getSocketConnection(AbstractBroker $broker) { return new AMQPSocketConnection($broker->getHost(), $broker->getPort(), $broker->getUser(), $broker->getPassword(), $broker->getVhost(), $broker->getInsist(), $broker->getLoginMethod(), $broker->getLoginResponse(), $broker->getLocale(), $broker->getTimeout(), $broker->getKeepAlive()); }
/** * Open a channel * * You can send a channel id as parameter, or null to pick a random one, or use the default option from * the broker with false. * * @param int|null|bool $channelId * * @return $this */ public function openChannel($channelId = false) { $this->broker->openChannel($channelId); return $this; }
/** * Initialize a RabbitMQ broker with the default options. * * {@inheritdoc} */ public function __construct(array $options = array()) { parent::__construct(array_merge($this->defaultOptions, $options)); }