Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DependencyInjection] Fix dumping closure of service closure #49413

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

Closed

Conversation

fancyweb
Copy link
Contributor

Q A
Branch? 6.2
Bug fix? yes
New feature? -
Deprecations? -
Tickets -
License MIT
Doc PR -

Using closure(service_closure(MyService::class)), I'm expecting to get a wrapping closure of the service closure, not directly the service closure.
If it's not a valid use case at all, then we have to deprecate it because it's really misleading 😓

@carsonbot carsonbot added this to the 6.2 milestone Feb 16, 2023
@fancyweb fancyweb closed this Feb 17, 2023
nicolas-grekas added a commit that referenced this pull request Feb 21, 2023
… closure (fancyweb)

This PR was merged into the 6.3 branch.

Discussion
----------

[DependencyInjection] Improve dumping closure of service closure

| Q             | A
| ------------- | ---
| Branch?       | 6.3
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Replaces #49413 as an improvement

Dumping `(...)` at the end of a `\Closure` is useless.

Commits
-------

49ce885 [DependencyInjection] Improve dumping closure of service closure
symfony-splitter pushed a commit to symfony/dependency-injection that referenced this pull request Feb 21, 2023
… closure (fancyweb)

This PR was merged into the 6.3 branch.

Discussion
----------

[DependencyInjection] Improve dumping closure of service closure

| Q             | A
| ------------- | ---
| Branch?       | 6.3
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Replaces symfony/symfony#49413 as an improvement

Dumping `(...)` at the end of a `\Closure` is useless.

Commits
-------

49ce885db8 [DependencyInjection] Improve dumping closure of service closure
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.

2 participants