Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4474

PHP generator use PSR-4 default

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.12.0
    • Component/s: PHP - Compiler
    • Labels:
      None

      Description

      Before, PHP generator generate php files like Types.php, Service.php.
      Those can only be load via classmap method. The latest PSR about autoload is PSR-4.

      thrift compiler can generate PSR-4 code default, if want old-style code(which can only load via classmap), add classmap option.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Robert Lu Robert Lu
                Reporter:
                Robert Lu Robert Lu
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: