I have a problem with the ReflectionService (Flow 4.3.3). I try to find all methods in a class that are annotated with an own annotation.
$reflectionService = $this->objectManager->get(\Neos\Flow\Reflection\ReflectionService::class);
$methods = $reflectionService->getMethodsAnnotatedWith(Application::class, FestimanBase\TakeForMD5::class);
In Development Context I get an array with 2 methods (true result). In Production Context I get an empty array (false result).
But when I call the following in Production Context:
$reflectionService->getMethodAnnotation(Application::class, 'getTextValues', FestimanBase\TakeForMD5::class);
I get the full annotation classname as result (and this is right). So it seems, that the framework recognizes the annotation but only getMethodsAnnotatedWith() doesn’t work!?
Do you have an idea what it could be?
Thanks and kind regards