Description
In the master
branch there's an unreleased (yet) commit that dropped support for Doctrine annotations - 870b448.
This commit also drops [1] a feature about allowing to use "method"-bound annotations (attributes) with explicit "target" (example: [2]).
The question is - is this dropping a feature intended? Are you open to reintroducing it - to simplify an upgrade path?
[1] 870b448#diff-b4cb271cb57cae8e3c9c55d3590bab4ea0781066f699d94ac970f89f8b7e06b4L356-L364
[2] https://github.com/thecodingmachine/graphqlite-symfony-validator-bridge/blob/2f677f6dc5c81660505e6c73952661d4d98f1199/tests/Fixtures/Controllers/UserController.php#L37
If I add this snippet locally, the logic about auto-bound annotations (attributes) from method to parameters will work as before.
// \TheCodingMachine\GraphQLite\AnnotationReader::getParameterAnnotationsPerParameter
$parameterAnnotationsPerParameter = [];
$attributes = $method->getAttributes();
foreach ($attributes as $attribute) {
if (false === \is_a($attribute->getName(), ParameterAnnotationInterface::class, true)) {
continue;
}
$parameterAnnotation = $attribute->newInstance();
$parameterAnnotationsPerParameter[$parameterAnnotation->getTarget()][] = $parameterAnnotation;
}