src/Composer/ModuleFinder.php
public function findBundleClasses(): array
    {
        /** @var string[][] $bundleSets */
        $bundleSets = [];

        $modules = $this->packageRepository->findModules();
        foreach ($modules as $module) {
            $extra = $module->getExtra();
            $this->validateBundlesSectionInExtra($extra);
            if (empty($extra['phplist/core']['bundles'])) {
                continue;
            }

            $bundleSets[$module->getName()] = $extra['phplist/core']['bundles'];
        }

        return $bundleSets;
    }
public function findBundleClasses(): array
    {
        /** @var string[][] $bundleSets */
        $bundleSets = [];

        $modules = $this->packageRepository->findModules();
        foreach ($modules as $module) {
            $extra = $module->getExtra();
            $this->validateBundlesSectionInExtra($extra);
            if (empty($extra['phplist/core']['bundles'])) {
                continue;
            }

            $bundleSets[$module->getName()] = $extra['phplist/core']['bundles'];
        }

        return $bundleSets;
    }
public function findBundleClasses ( ) : array { /** @var string[][] $bundleSets */ $ bundleSets = [ ] ; $ modules = $ this -> packageRepository -> findModules ( ) ; foreach ( $ modules as $ module ) { $ extra = $ module -> getExtra ( ) ; $ this -> validateBundlesSectionInExtra ( $ extra ) ; if ( empty ( $ extra [ 'phplist/core' ] [ 'bundles' ] ) ) { continue ; } $ bundleSets [ $ module -> getName ( ) ] = $ extra [ 'phplist/core' ] [ 'bundles' ] ; } return $ bundleSets ; }
Finds the bundles class in all installed modules.

@return string[][] class names of the bundles of all installed phpList modules:
['module package name' => ['bundle class name 1', 'bundle class name 2']]

@throws \InvalidArgumentException
Finds the bundles class in all installed modules .