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

Detect Symfony\Component\HttpKernel\Controller\ValueResolverInterface as entry point #85

Open
ruudk opened this issue Sep 14, 2024 · 4 comments

Comments

@ruudk
Copy link

ruudk commented Sep 14, 2024

It should not complain about the constructor.

@janedbal
Copy link
Member

How did you register such resolver? I thought you need to have it in DIC (which is detected):

services:
  ShipMonk\InputMapper\InputArgumentValueResolver:
    tags:
      -
        name: controller.argument_value_resolver

@ruudk
Copy link
Author

ruudk commented Sep 14, 2024

We're using Autowire and don't have an XML file for the container. See #92 for an explanation.

@janedbal
Copy link
Member

To induce that constructor is used once #[Autowire] is used, we probably also need something like this.

@janedbal
Copy link
Member

This is now possible to do via AST-based extension point: MemberUsageProvider::getUsages(): list<ClassMemberUsage> (since 0.7.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants