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

        $modules = $this->packageRepository->findModules();
        foreach ($modules as $module) {
            $extra = $module->getExtra();
            $this->validateGeneralConfigurationSectionInExtra($extra);
            if (!isset($extra['phplist/core']['configuration'])) {
                continue;
            }

            $configurationSets[] = $extra['phplist/core']['configuration'];
        }

        return /** @scrutinizer ignore-call */ array_replace_recursive(...$configurationSets);
    }
public function findGeneralConfiguration(): array
    {
        /** @var array[] $configurationSets */
        $configurationSets = [[]];

        $modules = $this->packageRepository->findModules();
        foreach ($modules as $module) {
            $extra = $module->getExtra();
            $this->validateGeneralConfigurationSectionInExtra($extra);
            if (!isset($extra['phplist/core']['configuration'])) {
                continue;
            }

            $configurationSets[] = $extra['phplist/core']['configuration'];
        }

        return /** @scrutinizer ignore-call */ array_replace_recursive(...$configurationSets);
    }
public function findGeneralConfiguration ( ) : array { /** @var array[] $configurationSets */ $ configurationSets = [ [ ] ] ; $ modules = $ this -> packageRepository -> findModules ( ) ; foreach ( $ modules as $ module ) { $ extra = $ module -> getExtra ( ) ; $ this -> validateGeneralConfigurationSectionInExtra ( $ extra ) ; if ( ! isset ( $ extra [ 'phplist/core' ] [ 'configuration' ] ) ) { continue ; } $ configurationSets [ ] = $ extra [ 'phplist/core' ] [ 'configuration' ] ; } return /** @scrutinizer ignore-call */ array_replace_recursive ( ... $ configurationSets ) ; }
Finds and merges the configuration in all installed modules.

@return array configuration which can be dumped in a config_modules.yml file

@throws \InvalidArgumentException
Finds and merges the configuration in all installed modules .