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

Skip to content

[Config] Always protected ClassExistenceResource against bad parents #23041

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
Jun 2, 2017

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 3.3
Bug fix? yes
New feature? no
BC breaks? (new hidden feat)
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

Let's always protected against bad or missing parents. The protection was conditional because the protection adds some perf overhead, but this was a micro optim really...

BC break is for a new feat, better not maintain this.

@nicolas-grekas
Copy link
Member Author

Related to symfony/recipes#91 (missing parent should not make the container compilation fail)

@nicolas-grekas
Copy link
Member Author

Appveyor failure is from a transient test.
deps=high line needs a merge up to be green.
Ready.

@fabpot
Copy link
Member

fabpot commented Jun 2, 2017

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 86bf26c into symfony:3.3 Jun 2, 2017
fabpot added a commit that referenced this pull request Jun 2, 2017
…ad parents (nicolas-grekas)

This PR was merged into the 3.3 branch.

Discussion
----------

[Config] Always protected ClassExistenceResource against bad parents

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | (new hidden feat)
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Let's always protected against bad or missing parents. The protection was conditional because the protection adds some perf overhead, but this was a micro optim really...

BC break is for a new feat, better not maintain this.

Commits
-------

86bf26c [Config] Always protect ClassExistenceResource against bad parents
@nicolas-grekas nicolas-grekas deleted the ko-protect branch June 2, 2017 18:48
@fabpot fabpot mentioned this pull request Jun 5, 2017
fabpot added a commit that referenced this pull request Jul 19, 2017
…nts (nicolas-grekas)

This PR was merged into the 3.3 branch.

Discussion
----------

[Config] Make ClassExistenceResource throw on invalid parents

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

Let's throw a more specific exception when a parent class/interface/trait is missing.
Fine tunes #23041

Commits
-------

53b0190 [Config] Make ClassExistenceResource throw on invalid parents
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.

3 participants