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

[FrameworkBundle] Fix a bug where a color tag will be shown when passing an antislash#25308

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

Conversation

@Simperfit
Copy link
Contributor

@SimperfitSimperfit commentedDec 4, 2017
edited
Loading

QA
Branch?3.3
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#25193
LicenseMIT
Doc PRnone

You can see in thereproducer when runningbin/console debug:container that there an error in the ouput (like in the issue) when using a class with\ in the service name.

This PR fix this wrong output. (even if that feels more developer thingy when there are xml everywhere ;)

foreach ($this->sortServiceIds($serviceIds)as$serviceId) {
$definition =$this->resolveServiceDefinition($builder,$serviceId);
if ('\\' ===substr($serviceId, -1)) {
$serviceId =substr($serviceId,0, -1);
Copy link
Member

Choose a reason for hiding this comment

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

But this means that the displayed service ID will be wrong, doesn't it?

Copy link
ContributorAuthor

@SimperfitSimperfitDec 4, 2017
edited
Loading

Choose a reason for hiding this comment

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

Yeah, you are right, we should escape without removing it. I was not thinking about that, it feels strange to have that kind of service, maybe we should do something before displaying it ?

Copy link
Member

Choose a reason for hiding this comment

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

I think you need to take a look at theOutputFormatter::escape() method

Simperfit reacted with thumbs up emoji
Copy link
ContributorAuthor

@SimperfitSimperfitDec 4, 2017
edited
Loading

Choose a reason for hiding this comment

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

Thanks@xabbuh that's what I needed!

@SimperfitSimperfitforce-pushed thebugfix/fix-a-bug-where-an-antislash-will-break-the-ouput branch from987fbae toa9dbec8CompareDecember 4, 2017 16:18
@SimperfitSimperfitforce-pushed thebugfix/fix-a-bug-where-an-antislash-will-break-the-ouput branch froma9dbec8 to890edf7CompareDecember 4, 2017 16:41
@nicolas-grekas
Copy link
Member

I'm removing the photo from the description, it's a bit weird to see your face when reviewing the PR :)
For which branch is the bug fix? This targets master right now, not sure it's correct.

Simperfit reacted with laugh emoji

@SimperfitSimperfit changed the base branch frommaster to3.3December 4, 2017 16:51
@Simperfit
Copy link
ContributorAuthor

Simperfit commentedDec 4, 2017
edited
Loading

@nicolas-grekas it's for 3.3 since the bug does not exist before.

@fabpot
Copy link
Member

Thank you@Simperfit.

@fabpotfabpot merged commit890edf7 intosymfony:3.3Dec 4, 2017
fabpot added a commit that referenced this pull requestDec 4, 2017
…n when passing an antislash (Simperfit)This PR was merged into the 3.3 branch.Discussion----------[FrameworkBundle] Fix a bug where a color tag will be shown when passing an antislash| Q             | A| ------------- | ---| Branch?       | 3.3| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#25193| License       | MIT| Doc PR        | noneYou can see in the [reproducer](Simperfit/symfony-reproducer@e6509ff) when running `bin/console debug:container` that there an error in the ouput (like in the issue) when using a class with `\` in the service name.This PR fix this wrong output. (even if that feels more developer thingy when there are xml everywhere ;)Commits-------890edf7 [FrameworkBundle] Fix a bug where a color tag will be shown when passing an antislash
This was referencedDec 4, 2017
@SimperfitSimperfit deleted the bugfix/fix-a-bug-where-an-antislash-will-break-the-ouput branchDecember 5, 2017 07:01
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh left review comments

@fabpotfabpotfabpot approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@Simperfit@nicolas-grekas@fabpot@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp