Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[DI] Don't try to instantiate reflection class if it doesn't exist #21631

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
Feb 16, 2017

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented Feb 16, 2017

Q A
Branch? master
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR n/a

Introduced in #21419 so master only.
It breaks on bundles that do not use the convention for naming their Configuration do not have configuration, e.g. SecurityBundle's FirewallEntryPointExtension for which tests are actually broken (see travis).

@chalasr chalasr changed the title [SecurityBundle] Don't try to instantiate reflection class if it doesn't exist [DI] Don't try to instantiate reflection class if it doesn't exist Feb 16, 2017
@ogizanagi
Copy link
Contributor

ogizanagi commented Feb 16, 2017

Just to confirm: the issue seems to come from the FirewallEntryPointExtension from the registered bundles in the fixtures app, as this extension does not have any configuration.
Thus, https://github.com/symfony/symfony/pull/21057/files#diff-40ba7de9e4147b219f8ed3a42dede24dR51 which is calling getConfiguration() causes the error.

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

👍

@fabpot
Copy link
Member

fabpot commented Feb 16, 2017

Thank you @chalasr.

@fabpot fabpot merged commit f9b917a into symfony:master Feb 16, 2017
fabpot added a commit that referenced this pull request Feb 16, 2017
…sn't exist (chalasr)

This PR was merged into the 3.3-dev branch.

Discussion
----------

[DI] Don't try to instantiate reflection class if it doesn't exist

| Q             | A
| ------------- | ---
| Branch?       | master
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

Introduced in #21419 so master only.
It breaks on bundles that ~~do not use the convention for naming their `Configuration`~~ do not have configuration, e.g. SecurityBundle's FirewallEntryPointExtension for which tests are actually broken (see travis).

Commits
-------

f9b917a [DI] Don't instantiate unexisting reflection class
@chalasr chalasr deleted the fix-tests branch February 16, 2017 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.