diff options
author | Jeff Ching <chingor@google.com> | 2018-05-16 17:06:48 -0700 |
---|---|---|
committer | Jeff Ching <chingor@google.com> | 2018-05-16 17:06:48 -0700 |
commit | 6d96a9a6126fb94a3e0975ddfdf0791fb81e6060 (patch) | |
tree | 52d0bf0c3fc8e4aa4f4dcfeae469c1464fc5cd85 | |
parent | 31676f36b1c58543697a9ea5e2a84961601b8156 (diff) |
Provide hostname to getDefaultChannel
-rw-r--r-- | src/php/lib/Grpc/BaseStub.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/php/lib/Grpc/BaseStub.php b/src/php/lib/Grpc/BaseStub.php index 489d96c8aa..b9c50b1da6 100644 --- a/src/php/lib/Grpc/BaseStub.php +++ b/src/php/lib/Grpc/BaseStub.php @@ -69,7 +69,7 @@ class BaseStub return; } - $this->channel = static::getDefaultChannel($opts); + $this->channel = static::getDefaultChannel($hostname, $opts); } /** @@ -79,7 +79,7 @@ class BaseStub * * @return Channel The channel */ - public static function getDefaultChannel(array $opts) + public static function getDefaultChannel($hostname, array $opts) { $package_config = json_decode( file_get_contents(dirname(__FILE__).'/../../composer.json'), |