-
Notifications
You must be signed in to change notification settings - Fork 137
Closed
Labels
Description
Been working on a composer plugin that runs before dumping the autoloader so the normal autoloader isn't available. With some advise from @asgrim and @Ocramius they suggested the following:
(new ClassReflector((new MakeLocatorForComposerJson())(dirname($vendorDir), (new BetterReflection())->astLocator())))->getAllClasses()To get all classes and iterate over them so see which ones implement a specific interface. Now when doing so I'm getting errors about missing interfaces:
"Psr\EventDispatcher\ListenerProviderInterface" could not be found in the located source
"Composer\Plugin\PluginInterface" could not be found in the located source
"Psr\EventDispatcher\ListenerProviderInterface" could not be found in the located source
"Psr\EventDispatcher\EventDispatcherInterface" could not be found in the located source
"Psr\Log\LoggerInterface" could not be found in the located source
Refs: https://twitter.com/Ocramius/status/1250751832944672768