Skip to content

ValueResolver: fix resolver injection example #17489

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
Dec 2, 2022

Conversation

kaznovac
Copy link
Contributor

@kaznovac kaznovac commented Dec 1, 2022

example resolver was not conforming to ValueResolverInterface, see:
https://github.com/symfony/symfony/blob/40731aa9b6508bb803d1ce02db88ca5f0badb050/src/Symfony/Component/HttpKernel/Controller/ValueResolverInterface.php#L27

services configuration pointed to previously derived resolver example

@carsonbot carsonbot added this to the 6.2 milestone Dec 1, 2022
@javiereguiluz
Copy link
Member

The array return type is on purpose. See #17362 (comment)

@kaznovac kaznovac changed the title ValueResolver: fix resolve method return type, fix resolver injection example ValueResolver: fix resolver injection example Dec 2, 2022
@kaznovac
Copy link
Contributor Author

kaznovac commented Dec 2, 2022

@javiereguiluz thanks for the reference (I wasn't aware type change was intentional)

I've reverted it and updated the PR, can you please recheck?

@javiereguiluz
Copy link
Member

Thanks Marko! We've just merged your contribution.

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.

3 participants