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] Validate class-like service IDs#33111

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

Closed
ro0NL wants to merge1 commit intosymfony:3.4fromro0NL:leading-slash
Closed

[DI] Validate class-like service IDs#33111

ro0NL wants to merge1 commit intosymfony:3.4fromro0NL:leading-slash

Conversation

@ro0NL
Copy link
Contributor

@ro0NLro0NL commentedAug 11, 2019
edited
Loading

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

Alternative approach of#33092 for 3.4 (enables to continue#33108 for 4.3)

cc@fabpot@nicolas-grekas

@ro0NL
Copy link
ContributorAuthor

From the original issue, im not sure

Class “” used for service “\App\Some\Service” cannot be found.

happens in 3.4, i got the error athttps://github.com/symfony/symfony/pull/33111/files#diff-81d8d6906c0de563850dc240f5a1d213R77

}
if (preg_match('/^\\\\[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+(?:\\\\[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+)++$/',$id)) {
thrownewRuntimeException(sprintf(
'The definition for "%s" has no class attribute, and appears to reference a class or interface.'

Choose a reason for hiding this comment

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

and appears to reference a class or interface

actually not, since the class doesn't exist
that + the fact that the message reported in#33092 is not the one just below, I'm not sure this PR is the correct answer.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

you're right. Let's continue in#33108

AFAIK the if block at L51 is now dead code :/

@ro0NLro0NL closed thisAug 12, 2019
@ro0NLro0NL deleted the leading-slash branchAugust 12, 2019 09:39
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

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@ro0NL@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp