1. 25 May, 2018 2 commits
    • Brent Shaffer's avatar
      PHP namespaces for nested messages and enums (#4536) · 2774e544
      Brent Shaffer authored
      * uses namespaces for nested messages and enums
      
      * fixes namespaces for PHP dist
      
      * fixes namespace for Descriptors, adds Cardinality and Kind
      
      * fixes nested namespaces for reserved words and adds tests
      
      * adds tests and generator fix for php class prefixes
      
      * fixes escaping of protobuf packages, enum comments, misc others
      
      * nice refactor of generated code
      
      * adds class files for backwards compatibility
      
      * simplifies code with templates
      
      * adds compatibility files to makefile
      
      * cleanup of generator and fixes nested namespace bug
      
      * regenerates proto types
      
      * remove internal BC classes
      
      * adds deprecated warning, adds methods back
      
      * simplifies if statement
      
      * fixes dist files
      
      * addresses review comments
      
      * adds back TYPE_URL_PREFIX constant
      
      * adds @deprecated to old nested class files
      
      * skips tests which require a separate process when protobuf.so is enabled
      
      * Adds tests for legacy nested classes that do not require separate processes to test
      
      * uses legacy names for GPBUtil message check
      
      * adds block for IDE @deprecated message
      
      * Namespace for nested message/enum in c extension
      
      * Remove unused code
      2774e544
    • Brent Shaffer's avatar
      PHP array constructors for protobuf messages (#4530) · c9b404d2
      Brent Shaffer authored
      * PHP array constructors for protobuf messages
      
      * removes Descriptor from error message
      
      * allows mergeFrom to accept an array
      
      * only use initWithDescriptor if instanceof MapEntry
      
      * adds doc comments
      
      * removes ability for constructors to take arrays for submessages
      
      * Revert "allows mergeFrom to accept an array"
      
      This reverts commit b7b72182d561634af12c5c5c56a7cda3b33241f9.
      
      * makes mergeFromArray protected and fixes mergeFrom whitespace
      
      * Separates merging from JSON and merging from PHP array
      
      * removes well-known types and json keys from array construction
      
      * Addresses PR review comments
      
      * cleans up tests
      
      * fixes exception messages
      c9b404d2
  2. 19 Jul, 2017 1 commit
  3. 17 Jul, 2017 1 commit
  4. 27 Jun, 2017 1 commit
    • Brent Shaffer's avatar
      adds PHPDoc @return and @param for getters and setters respectively (#3131) · 12acbc26
      Brent Shaffer authored
      * adds PHPDoc @return and @param for getters and setters respectively
      
      * addresses changes in PR review
      
      * adds documentation tests
      
      * Update php_generator:
      
      - Prepend \ to names where required
      - Remove <pre> tags
      - Update protobuf field comments
      
      * Updates class files with the protobuf changes
      
      * Addresses review comments
      
      * removes Protobuf Type line from PHP generated classes
      
      * fixes phpdoc test
      
      * adds array types to phpdoc
      12acbc26
  5. 05 Jun, 2017 1 commit
    • Paul Yang's avatar
      Add new file option php_namespace. (#3162) · 6f325805
      Paul Yang authored
      * Add new file option php_namespace.
      
      Use this option to change the namespace of php generated classes.
      Default is empty. When this option is empty, the package name will be
      used for determining the namespace.
      
      * Uncomment commented tests
      
      * Revert gdb test change
      
      * Update csharp descriptor.
      
      * Add test for empty php_namespace.
      6f325805
  6. 17 Mar, 2017 1 commit
  7. 08 Dec, 2016 1 commit