FluxBB\Util\ConfigLoader::filesIn PHP 메소드

filesIn() 보호된 메소드

Returns an array with the full paths to all PHP files in the given directory, indexed by name without extension.
protected filesIn ( string $configPath ) : string[]
$configPath string
리턴 string[]
    protected function filesIn($configPath)
    {
        $files = [];
        foreach (Finder::create()->files()->name('*.php')->in($configPath) as $file) {
            $group = basename($file->getRealPath(), '.php');
            $files[$group] = $file->getRealPath();
        }
        return $files;
    }