You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King III (JIRA)" <ji...@apache.org> on 2019/01/04 03:10:02 UTC
[jira] [Closed] (THRIFT-3915) PSR(PHP Standard Recommendation)
Conformance Violation
[ https://issues.apache.org/jira/browse/THRIFT-3915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James E. King III closed THRIFT-3915.
-------------------------------------
This issue was resolved without a fixVersion but was not closed - closing.
> PSR(PHP Standard Recommendation) Conformance Violation
> ------------------------------------------------------
>
> Key: THRIFT-3915
> URL: https://issues.apache.org/jira/browse/THRIFT-3915
> Project: Thrift
> Issue Type: Improvement
> Components: Compiler (General)
> Affects Versions: 0.9.3
> Environment: Any
> Reporter: Juwon Kim
> Assignee: James E. King III
> Priority: Major
> Labels: build
>
> Hi there? I'm a server guy in Korea, mainly focuses on PHP development. I'm leaving this issue to let you know that Thrift-generated code violates PSR(PHP Standard Recommendation). And I'm asking you to follow the PHP community rules.
> I started using Apache Thrift a couple of days ago, I found out that Thrift-generated code does not follow PSR-1. In a nutshell a PHP file should contain only one class(http://www.php-fig.org/psr/psr-1/#3-namespace-and-class-names), but Thrift-generated one has many.
> The problem is that Thrift-generated classes cannot be autoloadable through PSR-4 autoload standard(http://www.php-fig.org/psr/psr-4/#3-examples). The workaround is writing a home-made autoloading logic, or taking advantage of symbolic link like https://github.com/appkr/psr4-autoload-test/ . Which is not elegant anyway.
> So I would like you to study the voice of PHP users on the importance of PSR.
> I hope to see your opinion soon.
> Thanks,
> appkr.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)