-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Use PSR-4 everywhere instead of PSR-0 #11199
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
The travis failure is now json-related in the latest 5.4/5.5/5.6 releases. Should not block this PR. |
@@ -116,6 +116,11 @@ private function getClassCandidates($class) | |||
$classes = array_merge($classes, $this->findClassInPath($path, $class)); | |||
} | |||
} | |||
foreach ($function[0]->getPrefixesPsr4() as $prefix => $paths) { |
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.
getPrefixesPsr4
only exists in the Composer ClassLoader, not in the Symfony one
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.
Oh right I missed the second part of the if above, will fix :)
👍 |
1 similar comment
👍 |
Needs to be updated for VarDumper component and DebugBundle. |
Now that PSR-0 is considered deprecated, it's maybe a good time to perform the switch. What do you think? |
If it's good for everyone I guess I'll update it for the new components and it can go in 2.7 and up. |
👍 |
Closing in favor of #12466 against 2.7 |
Includes and replaces #11190 + psr-4 support for ClassNotFoundFatalErrorHandler (not sure if this is considered as a new feature, it's kinda trivial)