Composer plugins need to ensure all their classes are loaded to ensure a smooth run when upgraded.
I propose to change how this is done in this plugin here by what does Symfony Flex (which is way more maintenable) :
foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator(__DIR__, \FilesystemIterator::SKIP_DOTS)) as $file) {
if ('.php' === substr($file, 0, -4)) {
require_once $file;
}
Composer plugins need to ensure all their classes are loaded to ensure a smooth run when upgraded. I propose to change how this is done in this plugin here by what does Symfony Flex (which is way more maintenable) :