Skip to content

[DependencyInjection] Add support for casting callables into single-met… #18132

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
nicolas-grekas opened this issue Mar 28, 2023 · 3 comments
Closed
Labels
DependencyInjection hasPR A Pull Request has already been submitted for this issue.
Milestone

Comments

@nicolas-grekas
Copy link
Member

Q A
Feature PR symfony/symfony#49632
PR author(s) @nicolas-grekas
Merged in 6.3

We created this issue to not forget to document this new feature. We would really appreciate if you can help us with this task. If you are not sure how to do it, please ask us and we will help you.

To fix this issue, please create a PR against the 6.3 branch in the symfony-docs repository.

Thank you! 😃

@nicolas-grekas nicolas-grekas added this to the 6.3 milestone Mar 28, 2023
@javiereguiluz
Copy link
Member

If contributors need inspiration to document this, @nicolas-grekas himself prepared a description of this feature for the "New in Symfony" blog post. See https://symfony.com/blog/new-in-symfony-6-3-dependency-injection-improvements#generating-adapters-for-functional-interfaces

@alexandre-daubois
Copy link
Member

alexandre-daubois commented May 25, 2023

I'm having a look 👍

javiereguiluz added a commit that referenced this issue Jun 5, 2023
…into single-method interfaces (alexandre-daubois)

This PR was merged into the 6.3 branch.

Discussion
----------

[DependencyInjection] Add support for casting callables into single-method interfaces

Resolves #18132

Commits
-------

6957aee [DependencyInjection] Add support for casting callables into single-method interfaces
@javiereguiluz
Copy link
Member

Closing as fixed in #18348.

@xabbuh xabbuh added the hasPR A Pull Request has already been submitted for this issue. label Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DependencyInjection hasPR A Pull Request has already been submitted for this issue.
Projects
None yet
Development

No branches or pull requests

5 participants