FluxBB\Util\ConfigLoader::filesIn PHP Method

filesIn() protected method

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
return 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;
    }