PHP:add psr-4 autoload
@ -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', [