app/Module/BatchUpdateModule.php
private function getPluginList(): array
    {
        $plugins = [];
        $files   = glob(__DIR__ . '/BatchUpdate/BatchUpdate*Plugin.php', GLOB_NOSORT);

        foreach ($files as $file) {
            $base_class = basename($file, '.php');

            if ($base_class !== 'BatchUpdateBasePlugin') {
                $class           = __NAMESPACE__ . '\\BatchUpdate\\' . basename($file, '.php');
                $plugins[$class] = new $class();
            }
        }

        return $plugins;
    }
private function getPluginList(): array
    {
        $plugins = [];
        $files   = glob(__DIR__ . '/BatchUpdate/BatchUpdate*Plugin.php', GLOB_NOSORT);

        foreach ($files as $file) {
            $base_class = basename($file, '.php');

            if ($base_class !== 'BatchUpdateBasePlugin') {
                $class           = __NAMESPACE__ . '\\BatchUpdate\\' . basename($file, '.php');
                $plugins[$class] = new $class();
            }
        }

        return $plugins;
    }
private function getPluginList ( ) : array { $ plugins = [ ] ; $ files = glob ( __DIR__ . '/BatchUpdate/BatchUpdate*Plugin.php' , GLOB_NOSORT ) ; foreach ( $ files as $ file ) { $ base_class = basename ( $ file , '.php' ) ; if ( $ base_class !== 'BatchUpdateBasePlugin' ) { $ class = __NAMESPACE__ . '\\BatchUpdate\\' . basename ( $ file , '.php' ) ; $ plugins [ $ class ] = new $ class ( ) ; } } return $ plugins ; }
Scan the plugin folder for a list of plugins

@return BatchUpdateBasePlugin[]
Scan the plugin folder for a list of plugins