Skip to content
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

Made debug:container and debug:autowiring ignore starting backslash in service id #31304

Merged
merged 1 commit into from
May 1, 2019

Conversation

ruudk
Copy link
Contributor

@ruudk ruudk commented Apr 28, 2019

Q A
Branch? 4.2
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
License MIT

When you copy a reference to a class from PHPStorm it always start the FQCN with a backslash.

When you now try to search the container for this class using bin/console debug:container "\My\Class" it cannot find it.

This PR always removes the starting backslash before searching the container to avoid this issue.

@fabpot
Copy link
Member

fabpot commented May 1, 2019

Thank you @ruudk.

@fabpot fabpot merged commit 0945f27 into symfony:4.2 May 1, 2019
fabpot added a commit that referenced this pull request May 1, 2019
…rting backslash in service id (ruudk)

This PR was merged into the 4.2 branch.

Discussion
----------

Made `debug:container` and `debug:autowiring` ignore starting backslash in service id

| Q             | A
| ------------- | ---
| Branch?       | 4.2
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT

When you copy a reference to a class from PHPStorm it always start the FQCN with a backslash.

When you now try to search the container for this class using `bin/console debug:container "\My\Class"` it cannot find it.

This PR always removes the starting backslash before searching the container to avoid this issue.

Commits
-------

0945f27 Made `debug:container` and `debug:autowiring` ignore starting backslash in service id
@ruudk ruudk deleted the debug-container branch May 1, 2019 07:11
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.

None yet

5 participants