Skip to content

[DI] Show the right class autowired when providing a non-existing class #32040

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

Conversation

Simperfit
Copy link
Contributor

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

This gets the last current id before the error and pass it to the callback in order to get the right error message.

@Simperfit Simperfit requested a review from dunglas as a code owner June 14, 2019 08:29
@Simperfit Simperfit force-pushed the bugfix/show-the-right-class-when-providing-a-non-exisint-class-in-autowire branch 2 times, most recently from 18221a8 to 36a9a6a Compare June 14, 2019 08:37
@Simperfit
Copy link
Contributor Author

AppVeyor failure seems not related

@Simperfit Simperfit force-pushed the bugfix/show-the-right-class-when-providing-a-non-exisint-class-in-autowire branch from 36a9a6a to 717c71a Compare June 15, 2019 04:06
@Simperfit Simperfit force-pushed the bugfix/show-the-right-class-when-providing-a-non-exisint-class-in-autowire branch from 717c71a to fbda90a Compare June 15, 2019 04:08
@Simperfit
Copy link
Contributor Author

Status: Needs review

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.

Nice thanks.

@fabpot
Copy link
Member

fabpot commented Jun 16, 2019

Thank you @Simperfit.

@fabpot fabpot merged commit fbda90a into symfony:4.3 Jun 16, 2019
fabpot added a commit that referenced this pull request Jun 16, 2019
…xisting class (Simperfit)

This PR was merged into the 4.3 branch.

Discussion
----------

[DI] Show the right class autowired when providing a non-existing class

| Q             | A
| ------------- | ---
| Branch?        4.3
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | #31997   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        |none <!-- required for new features -->

<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/roadmap):
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too).
 - Features and deprecations must be submitted against branch 4.4.
 - Legacy code removals go to the master branch.
-->

This gets the last current id before the error and pass it to the callback in order to get the right error message.

Commits
-------

fbda90a [DI] Show the right class autowired when providing a non-existing class in constructor
@Simperfit Simperfit deleted the bugfix/show-the-right-class-when-providing-a-non-exisint-class-in-autowire branch June 16, 2019 14:11
@fabpot fabpot mentioned this pull request Jun 26, 2019
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.

6 participants