Skip to content
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

[DI] Trigger exception when using '@id' name in parent option #28315

Merged
merged 1 commit into from
Sep 4, 2018
Merged

[DI] Trigger exception when using '@id' name in parent option #28315

merged 1 commit into from
Sep 4, 2018

Conversation

Seb33300
Copy link
Contributor

@Seb33300 Seb33300 commented Aug 30, 2018

Same exception already triggered on the decorates option.

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

Note sure if I should submit this change for master or previous branches...

@nicolas-grekas
Copy link
Member

LGTM on master on my side.
Could you add a test case please?

@fabpot
Copy link
Member

fabpot commented Sep 4, 2018

Thank you @Seb33300.

@fabpot fabpot merged commit 1f67db6 into symfony:master Sep 4, 2018
fabpot added a commit that referenced this pull request Sep 4, 2018
… option (Seb33300)

This PR was squashed before being merged into the 4.2-dev branch (closes #28315).

Discussion
----------

[DI] Trigger exception when using '@id' name in parent option

Same exception [already triggered](https://github.com/symfony/symfony/blob/master/src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php#L505) on the `decorates` option.

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

Note sure if I should submit this change for master or previous branches...

Commits
-------

1f67db6 [DI] Trigger exception when using '@id' name in parent option
@stof stof added the DX DX = Developer eXperience (anything that improves the experience of using Symfony) label Sep 4, 2018
@Seb33300 Seb33300 deleted the patch-2 branch September 15, 2018 20:10
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.2 Nov 1, 2018
This was referenced Nov 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DependencyInjection DX DX = Developer eXperience (anything that improves the experience of using Symfony) Status: Reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants