Skip to content

Commit

Permalink
Reintroduced definitions for PHP GeneratedClassName() functions
Browse files Browse the repository at this point in the history
We no longer use these functions, but it turns out that we need to keep
them around for gRPC to use.
  • Loading branch information
acozzette committed Nov 11, 2020
1 parent 31f7196 commit fbbe11a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/google/protobuf/compiler/php/php_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fbbe11a

Please sign in to comment.