-
Notifications
You must be signed in to change notification settings - Fork 771
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
Real PSR-4 Autoloading #182
Conversation
Any news on this? |
Ping |
Do you want me to rebase? |
Ok, PSR-4 is the new standard over PSR-0, because it is more prcical and flexible. For example, it allows less directory nesting. When you install a package in composer that's PSR-0 autoloaded we end up with this sort of structure: "vendor\maintainer-name\package-name\src\MaintainerName\PackageName\Class.php". As you can see, that's quite long. A better system is PSR-4: ""vendor\maintainer-name\package-name\src\Class.php"". That smaller nesting is still useful when you are looking at the "src" folder in the repo itself too. |
I've rebased and added a branch alias. They are a good practice. |
Any news on this? |
Sorry! Can you separate the commit of the branch alias in a stand alone commit? |
Agreed. |
Sure. Give me 1 sec... |
See #194. Also, refresh this page to see the new psr-4 commit. I force pushed it. |
PSR-4 support instead of PSR-0.
Travis broke but I didn't check any further. |
Could that be linked to the package.XML being wrong? I didn't update the paths in there. Is that file even update anyway? |
I've removed our custom autoloader from bootstrap.php and referenced only the composer autoload.php. This means that our tests depend on composer from now on. Tests are passing. I'm not sure if we should keep the package.xml and PEAR dependencies. It seems that no one is using it. |
Actually, hhvm is still failing. We need to figure out what to do with |
It is clearly dead. |
Just a note: I just saw that change because of some old pull requests of mine broken... PSR-0 and PSR-4 can work together, there was not need to rename the files but just update composer autoload. |
Just rebase your pulls. |
@GrahamCampbell I already did it before comment here |
Replaces #181. TBH, there isn't really much merit in this, but it's here if you want it.