Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[DI] Improve class named servics error message#28057

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:3.4fromro0NL:di/error-msg
Jul 29, 2018
Merged

[DI] Improve class named servics error message#28057

nicolas-grekas merged 1 commit intosymfony:3.4fromro0NL:di/error-msg
Jul 29, 2018

Conversation

@ro0NL
Copy link
Contributor

QA
Branch?3.4
Bug fix?no
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#28006
LicenseMIT
Doc PRsymfony/symfony-docs#...

sstok reacted with heart emoji
if (0 ===strpos($id,'\\') &&1 <substr_count($id,'\\')) {
thrownewRuntimeException(sprintf(
'The definition for "%s" has no class attribute, and appears to reference a'
.'class or interface. Please specify the class attribute explicitly or rename'
Copy link
Contributor

@TobionTobionJul 26, 2018
edited
Loading

Choose a reason for hiding this comment

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

how about "... or remove the leading backslash by renaming the service to ..." to explain the difference. otherwise it's not obvious what the change actually is.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

agree, will do :) also i was wondering if we should include thewhy. If so,@nicolas-grekas how would you explain this?

Choose a reason for hiding this comment

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

because it doesn't work otherwise :) no reason to give here

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

works for me 👍

@nicolas-grekasnicolas-grekas added this to the3.4 milestoneJul 26, 2018
@nicolas-grekas
Copy link
Member

Thank you@ro0NL.

@nicolas-grekasnicolas-grekas merged commit61de060 intosymfony:3.4Jul 29, 2018
nicolas-grekas added a commit that referenced this pull requestJul 29, 2018
This PR was squashed before being merged into the 3.4 branch (closes#28057).Discussion----------[DI] Improve class named servics error message| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | no| New feature?  | no| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | no| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets |#28006| License       | MIT| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->Commits-------61de060 [DI] Improve class named servics error message
@ro0NLro0NL deleted the di/error-msg branchJuly 29, 2018 15:48
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

+1 more reviewer

@TobionTobionTobion approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

4 participants

@ro0NL@nicolas-grekas@Tobion@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp