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;
    }
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;
    }
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 ; }
Get all files in the given directory.

Returns an array with the full paths to all PHP files in the given directory, indexed by name without extension.

@param string $configPath
@return string[]
Get all files in the given directory .