-
Notifications
You must be signed in to change notification settings - Fork 356
Enhancement: Switch to PSR-4 autoloading #169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
👎 |
@localheinz @GrahamCampbell I am concerned about this PR as well. While I am all for PSR-4, flattening the directories could be really problematic for forked variations with patches applied in lieu of the historically slow turnaround for PR merges on this repo. IMO, PSR-4 is not out, but we will need to spend more time on the structural impacts. |
1aba9e8
to
d41b238
Compare
Rebased and push-forced, so switching to PSR-4 now, but not flattening the directory structure! |
@@ -44,10 +44,10 @@ | |||
"phpdocumentor/phpdocumentor": "~2" | |||
}, | |||
"autoload": { | |||
"psr-0": { "JsonSchema": "src/" } | |||
"psr-4": { "JsonSchema\\": "src/JsonSchema" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should end in a /
for the dirnames in both cases.
d41b238
to
344315f
Compare
+1 @GrahamCampbell you good with this? |
👍 |
Derp! Just saw @GrahamCampbell responded on this and rolled v1.4.4 😞 Will merge and account for this in 1.4.5 once another source code-related change is merged. |
Enhancement: Switch to PSR-4 autoloading
This PR
Follows #164.