diff options
author | Stanley Cheung <stanleycheung@google.com> | 2016-03-03 19:29:11 -0800 |
---|---|---|
committer | Stanley Cheung <stanleycheung@google.com> | 2016-03-10 16:58:34 -0800 |
commit | 7212f16700f765f9acd9681d945401a7ba81081a (patch) | |
tree | 412b0561b0468a8938d841149bed3d50a5365cdd /examples/php/route_guide/route_guide_client.php | |
parent | fbdf51b07e56d0794776e40bc3a4a054e1883f0e (diff) |
php: fix examples ClientStub constructor
Diffstat (limited to 'examples/php/route_guide/route_guide_client.php')
-rw-r--r-- | examples/php/route_guide/route_guide_client.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/php/route_guide/route_guide_client.php b/examples/php/route_guide/route_guide_client.php index 3cd1df7254..2f9533be4b 100644 --- a/examples/php/route_guide/route_guide_client.php +++ b/examples/php/route_guide/route_guide_client.php @@ -37,7 +37,9 @@ require dirname(__FILE__) . '/route_guide.php'; define('COORD_FACTOR', 1e7); -$client = new routeguide\RouteGuideClient('localhost:50051', []); +$client = new routeguide\RouteGuideClient('localhost:50051', [ + 'credentials' => Grpc\ChannelCredentials::createInsecure() +]); function printFeature($feature) { $name = $feature->getName(); |