Skip to content

[FrameworkBundle] 3.3: Don't get() private services from debug:router #23371

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

Merged
merged 1 commit into from
Jul 4, 2017
Merged

[FrameworkBundle] 3.3: Don't get() private services from debug:router #23371

merged 1 commit into from
Jul 4, 2017

Conversation

ogizanagi
Copy link
Contributor

Q A
Branch? 3.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #23366
License MIT
Doc PR N/A

Same as #23366 but another place exist in upper branches.

However, the original fix prevents using the proper name parser in case it was replaced 😕 .

@linaori
Copy link
Contributor

linaori commented Jul 4, 2017

Imo this should become a service and get it injected, which solves the problem

@ogizanagi
Copy link
Contributor Author

Sure, but making it a service in lower branches is a no-go I guess, as it'll require introducing new deprecations. But it can be done in 3.4.

@chalasr
Copy link
Member

chalasr commented Jul 4, 2017

It doesn't require any deprec to me, the router dependency must stay lazy, that gives a container aware command registered as a service. Not sure if it's worth it, but see #23377

@fabpot
Copy link
Member

fabpot commented Jul 4, 2017

Thank you @ogizanagi.

@fabpot fabpot merged commit c75e486 into symfony:3.3 Jul 4, 2017
fabpot added a commit that referenced this pull request Jul 4, 2017
…ebug:router (ogizanagi)

This PR was merged into the 3.3 branch.

Discussion
----------

[FrameworkBundle] 3.3: Don't get() private services from debug:router

| Q             | A
| ------------- | ---
| Branch?       | 3.3 <!-- see comment below -->
| Bug fix?      | yes
| New feature?  | no <!-- don't forget updating src/**/CHANGELOG.md files -->
| BC breaks?    | no
| Deprecations? | no <!-- don't forget updating UPGRADE-*.md files -->
| Tests pass?   | yes
| Fixed tickets | #23366 <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | N/A

Same as #23366 but another place exist in upper branches.

However, the original fix prevents using the proper name parser in case it was replaced 😕 .

Commits
-------

c75e486 [FrameworkBundle] 3.3: Don't get() private services from debug:router
@ogizanagi ogizanagi deleted the fix/3.3/router_debug_command_private_service branch July 4, 2017 14:24
@fabpot fabpot mentioned this pull request Jul 5, 2017
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.

5 participants