/** * @param ContainerInterface $container * @param string $protocol * @param string $encoding * @param bool $synchronous * @param array $endpoint */ public function __construct(ContainerInterface $container, $protocol, $encoding, $synchronous = true, array $endpoint = []) { parent::__construct($protocol, $encoding, $synchronous, $endpoint); $this->container = $container; }
/** * @param string $protocol * @param string $encoding * @param bool $synchronous * @param array $endpoint */ public function __construct($protocol, $encoding, $synchronous = false, array $endpoint = []) { parent::__construct($protocol, $encoding, $synchronous, $endpoint); $this->client = new Client($this->endpoint); }