Merge pull request #22986 from jeffreyqw/remove_include_file

PHP:add psr-4 autoload
pull/23077/head
Stanley Cheung 5 years ago committed by GitHub
commit 478028c7db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      examples/php/composer.json
  2. 5
      examples/php/greeter_client.php

@ -7,7 +7,9 @@
},
"autoload": {
"psr-4": {
"": "route_guide/"
"Routeguide\\": "route_guide/Routeguide/",
"GPBMetadata\\": ["GPBMetadata/","route_guide/GPBMetadata/"],
"Helloworld\\": "Helloworld/"
}
}
}

@ -21,11 +21,6 @@
require dirname(__FILE__).'/vendor/autoload.php';
@include_once dirname(__FILE__).'/Helloworld/GreeterClient.php';
@include_once dirname(__FILE__).'/Helloworld/HelloReply.php';
@include_once dirname(__FILE__).'/Helloworld/HelloRequest.php';
@include_once dirname(__FILE__).'/GPBMetadata/Helloworld.php';
function greet($name)
{
$client = new Helloworld\GreeterClient('localhost:50051', [

Loading…
Cancel
Save