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.
This commit is contained in:
Adam Cozzette 2020-11-11 10:06:01 -08:00
parent 31f719618c
commit fbbe11ae49

View File

@ -2204,6 +2204,18 @@ void GenerateCWellKnownTypes(const std::vector<const FileDescriptor*>& 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,