diff options
author | Michael Bausor <michaelbausor@google.com> | 2017-07-12 09:54:26 -0700 |
---|---|---|
committer | Michael Bausor <michaelbausor@google.com> | 2017-07-12 09:54:26 -0700 |
commit | 8f2a054f1706fcda1d821b4c9dea250d0cb47d29 (patch) | |
tree | 83a99a4ec0568d75f7e43c485459e382e159c28f /src/compiler/php_plugin.cc | |
parent | e908821d242c4435ab5973a824b48ad544763ce3 (diff) |
Support parameter to change PHP generated stub suffix
Diffstat (limited to 'src/compiler/php_plugin.cc')
-rw-r--r-- | src/compiler/php_plugin.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/php_plugin.cc b/src/compiler/php_plugin.cc index 7a581fd7bc..bbe91656d5 100644 --- a/src/compiler/php_plugin.cc +++ b/src/compiler/php_plugin.cc @@ -41,10 +41,11 @@ class PHPGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator { } for (int i = 0; i < file->service_count(); i++) { - grpc::string code = GenerateFile(file, file->service(i)); + grpc::string code = GenerateFile(file, file->service(i), parameter); // Get output file name - grpc::string file_name = GetPHPServiceFilename(file, file->service(i)); + grpc::string file_name = + GetPHPServiceFilename(file, file->service(i), parameter); std::unique_ptr<grpc::protobuf::io::ZeroCopyOutputStream> output( context->Open(file_name)); |