Skip to content

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

Merged
merged 1 commit into from
Jul 14, 2015

Conversation

localheinz
Copy link
Contributor

This PR

  • switches to PSR-4 autoloading

Follows #164.

@GrahamCampbell
Copy link
Contributor

flattens the directory structure

👎

@bighappyface
Copy link
Collaborator

@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.

@localheinz
Copy link
Contributor Author

@bighappyface @GrahamCampbell

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" }
Copy link
Contributor

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.

@bighappyface
Copy link
Collaborator

+1

@GrahamCampbell you good with this?

@GrahamCampbell
Copy link
Contributor

👍

@bighappyface
Copy link
Collaborator

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.

bighappyface added a commit that referenced this pull request Jul 14, 2015
Enhancement: Switch to PSR-4 autoloading
@bighappyface bighappyface merged commit 34ca930 into jsonrainbow:master Jul 14, 2015
@localheinz localheinz deleted the feature/psr-4 branch July 16, 2015 01:51
@localheinz
Copy link
Contributor Author

@bighappyface

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants