From fbbe11ae493e1e1bab6cc396dfbb7b4de9fd8bd0 Mon Sep 17 00:00:00 2001 From: Adam Cozzette Date: Wed, 11 Nov 2020 10:06:01 -0800 Subject: [PATCH] Reintroduced definitions for PHP GeneratedClassName() functions We no longer use these functions, but it turns out that we need to keep them around for gRPC to use. --- src/google/protobuf/compiler/php/php_generator.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/google/protobuf/compiler/php/php_generator.cc b/src/google/protobuf/compiler/php/php_generator.cc index 0b9da11e3cc5..d5cdee31d555 100644 --- a/src/google/protobuf/compiler/php/php_generator.cc +++ b/src/google/protobuf/compiler/php/php_generator.cc @@ -2204,6 +2204,18 @@ void GenerateCWellKnownTypes(const std::vector& files, } // namespace +std::string GeneratedClassName(const Descriptor* desc) { + return GeneratedClassNameImpl(desc); +} + +std::string GeneratedClassName(const EnumDescriptor* desc) { + return GeneratedClassNameImpl(desc); +} + +std::string GeneratedClassName(const ServiceDescriptor* desc) { + return GeneratedClassNameImpl(desc); +} + bool Generator::Generate(const FileDescriptor* file, const std::string& parameter, GeneratorContext* generator_context,