Skip to content

[Debug] Fix ClassNotFoundFatalErrorHandler candidates lookups #14451

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
Apr 24, 2015

Conversation

nicolas-grekas
Copy link
Member

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #14447
License MIT
Doc PR -

This is already tested: 2.7 fails because this patch is missing.

@nicolas-grekas nicolas-grekas changed the title [Debug] Fix ClassNotFoundFatalErrorHandler related to PSR-4 [Debug] Fix ClassNotFoundFatalErrorHandler candidates lookups Apr 23, 2015
@nicolas-grekas
Copy link
Member Author

This is a cherry-pick of 17f61af augmented with more strictness when looking up for candidates.

$symfonyUniversalClassLoader = new SymfonyUniversalClassLoader();
$symfonyUniversalClassLoader->registerPrefixes($prefixes);
} else {
$symfonyUniversalClassLoader = $symfonyAutoloader;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't you ignore this test in this case instead of transforming it into a duplicate test by reusing the non-deprecated loader ?

@nicolas-grekas
Copy link
Member Author

I added a test with a wrapping DebugClassLoader and better isolated the legacy one.

@nicolas-grekas nicolas-grekas merged commit 98ed078 into symfony:2.6 Apr 24, 2015
nicolas-grekas added a commit that referenced this pull request Apr 24, 2015
…ups (nicolas-grekas)

This PR was merged into the 2.6 branch.

Discussion
----------

[Debug] Fix ClassNotFoundFatalErrorHandler candidates lookups

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #14447
| License       | MIT
| Doc PR        | -

This is already tested: 2.7 fails because this patch is missing.

Commits
-------

98ed078 [Debug] Fix ClassNotFoundFatalErrorHandler candidates lookups
@nicolas-grekas nicolas-grekas deleted the fix-14447 branch April 24, 2015 15:38
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.

2 participants