Closed oqq closed 6 years ago
@oqq did you check if this interface really exists in your vendor-dir?
Of course, yes. The file exists and this middleware is accessible in a running application.
@oqq Not sure what exactly goes wrong here. You could try to figure it out.
One idea would be to use a php test script like this one:
<?php
require 'vendor/autoload.php';
use Roave\BetterReflection\Reflection\ReflectionClass;
$reflectedInterface = ReflectionClass::createFromName('Zend\Expressive\Router\RouterInterface');
like it is tried here: https://github.com/prooph/message-flow-analyzer/blob/master/src/Visitor/MessageHandlerCollector.php#L47
A workaround would be to use an exclude filter like I did for proophessor-do: https://github.com/prooph/message-flow-analyzer#run-it-against-proophessor-do (see point 5)
But in that case the interface is really not installed so the blacklist filter is the right option to use. In your case the interface seems to be available so the question is why it cannot be autoloaded by BetterReflection to inspect it.
I got same error.. So i will close this issue, go further with tests and will open an issue for the better reflection library.
ok, let me know the result
Seems to be fixed now. 👍
oh nice, need to try it
After execution of:
I got the following output:
The tested class file has a content like: