dead-code-detector
dead-code-detector copied to clipboard
Detect `Symfony\Component\HttpKernel\Controller\ValueResolverInterface` as entry point
It should not complain about the constructor.
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
We're using Autowire and don't have an XML file for the container. See https://github.com/shipmonk-rnd/dead-code-detector/issues/92 for an explanation.
To induce that constructor is used once #[Autowire] is used, we probably also need something like this.
This is now possible to do via AST-based extension point: MemberUsageProvider::getUsages(): list<ClassMemberUsage> (since 0.7.0)