src/Predef/ConfigurationCompiler.php
protected function yieldConfigurationFiles(CompilerContext $context): Generator{
        $configDirs = [];
        foreach($context->getProjectSearchPaths(SearchPathAttribute::SEARCH_PATH_USER_CONFIG) as $configDir) {
            $configDirs[] = (string)$configDir;
        }

        $pattern = $this->info[ static::INFO_PATTERN_KEY ];
        $defaultFile = $this->info[ static::INFO_CUSTOM_FILENAME_KEY ] ?? NULL;

        foreach($context->getSourceCodeManager()->yieldSourceFiles($pattern, $configDirs) as $fileName => $file) {
            if(basename($fileName) == $defaultFile)
                continue;

            yield $fileName => $file;
        }
    }
protected function yieldConfigurationFiles(CompilerContext $context): Generator{
        $configDirs = [];
        foreach($context->getProjectSearchPaths(SearchPathAttribute::SEARCH_PATH_USER_CONFIG) as $configDir) {
            $configDirs[] = (string)$configDir;
        }

        $pattern = $this->info[ static::INFO_PATTERN_KEY ];
        $defaultFile = $this->info[ static::INFO_CUSTOM_FILENAME_KEY ] ?? NULL;

        foreach($context->getSourceCodeManager()->yieldSourceFiles($pattern, $configDirs) as $fileName => $file) {
            if(basename($fileName) == $defaultFile)
                continue;

            yield $fileName => $file;
        }
    }
protected function yieldConfigurationFiles ( CompilerContext $ context ) : Generator { $ configDirs = [ ] ; foreach ( $ context -> getProjectSearchPaths ( SearchPathAttribute :: SEARCH_PATH_USER_CONFIG ) as $ configDir ) { $ configDirs [ ] = ( string ) $ configDir ; } $ pattern = $ this -> info [ static :: INFO_PATTERN_KEY ] ; $ defaultFile = $ this -> info [ static :: INFO_CUSTOM_FILENAME_KEY ] ?? NULL ; foreach ( $ context -> getSourceCodeManager ( ) -> yieldSourceFiles ( $ pattern , $ configDirs ) as $ fileName => $ file ) { if ( basename ( $ fileName ) == $ defaultFile ) continue ; yield $ fileName => $ file ; } }
Override to adjust configuration files and order

@param CompilerContext $context
@return Generator
Override to adjust configuration files and order