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] Handle root namespace in service definitions#23468

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 merge2 commits intosymfony:2.7fromro0NL:di/root-namespace
Closed

[DI] Handle root namespace in service definitions#23468

ro0NL wants to merge2 commits intosymfony:2.7fromro0NL:di/root-namespace

Conversation

@ro0NL
Copy link
Contributor

@ro0NLro0NL commentedJul 10, 2017
edited
Loading

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

Fixes

Cannot dump definition because of invalid class name ('\\stdClass')

for

services:foo:{class: '\stdClass' }

ContainerBuilder allows it, soPhpDumper should as well.

chalasr reacted with thumbs up emoji
@nicolas-grekasnicolas-grekas added this to the2.7 milestoneJul 11, 2017
return'\\'.substr(str_replace('\\\\','\\',$class),1, -1);
$class =substr(str_replace('\\\\','\\',$class),1, -1);

return'\\' ===substr($class,0,1) ?$class :'\\'.$class;
Copy link
Contributor

Choose a reason for hiding this comment

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

0 === strpos($class, '\\')

@nicolas-grekas
Copy link
Member

Thank you@ro0NL.

nicolas-grekas added a commit that referenced this pull requestJul 12, 2017
This PR was squashed before being merged into the 2.7 branch (closes#23468).Discussion----------[DI] Handle root namespace in service definitions| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | #... <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        | symfony/symfony-docs#... <!--highly recommended for new features-->Fixes```Cannot dump definition because of invalid class name ('\\stdClass')```for```yamlservices:    foo: {class: '\stdClass' }````ContainerBuilder` allows it, so `PhpDumper` should as well.Commits-------05170c8 [DI] Handle root namespace in service definitions
@ro0NLro0NL deleted the di/root-namespace branchJuly 12, 2017 12:14
This was referencedJul 17, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

+1 more reviewer

@stloydstloydstloyd left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

5 participants

@ro0NL@nicolas-grekas@fabpot@stloyd@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp