Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Closed
wants to merge 3 commits into from
Closed

Conversation

Seldaek
Copy link
Member

@Seldaek Seldaek commented Jun 22, 2014

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #11189
License MIT

Includes and replaces #11190 + psr-4 support for ClassNotFoundFatalErrorHandler (not sure if this is considered as a new feature, it's kinda trivial)

@Seldaek
Copy link
Member Author

Seldaek commented Jun 22, 2014

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) {
Copy link
Member

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

Copy link
Member Author

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 :)

@Tobion
Copy link
Contributor

Tobion commented Jun 27, 2014

👍

1 similar comment
@stof
Copy link
Member

stof commented Jun 27, 2014

👍

@Tobion
Copy link
Contributor

Tobion commented Sep 24, 2014

Needs to be updated for VarDumper component and DebugBundle.

@derrabus
Copy link
Member

Now that PSR-0 is considered deprecated, it's maybe a good time to perform the switch. What do you think?

@Seldaek
Copy link
Member Author

Seldaek commented Nov 11, 2014

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.

@derrabus
Copy link
Member

👍

@Seldaek
Copy link
Member Author

Seldaek commented Nov 12, 2014

Closing in favor of #12466 against 2.7

@Seldaek Seldaek closed this Nov 12, 2014
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.

7 participants