src/Core/Application.php
protected function getConfigurationFiles($path)
    {
        $files = [];

        foreach (Finder::create()->files()->name('*.php')->in($path) as $file) {
            $directory = $this->getNestedDirectory($file, $path);
            $files[$directory.basename($file->getRealPath(), '.php')] = $file->getRealPath();
        }

        ksort($files, SORT_NATURAL);

        return $files;
    }
protected function getConfigurationFiles($path)
    {
        $files = [];

        foreach (Finder::create()->files()->name('*.php')->in($path) as $file) {
            $directory = $this->getNestedDirectory($file, $path);
            $files[$directory.basename($file->getRealPath(), '.php')] = $file->getRealPath();
        }

        ksort($files, SORT_NATURAL);

        return $files;
    }
protected function getConfigurationFiles ( $ path ) { $ files = [ ] ; foreach ( Finder :: create ( ) -> files ( ) -> name ( '*.php' ) -> in ( $ path ) as $ file ) { $ directory = $ this -> getNestedDirectory ( $ file , $ path ) ; $ files [ $ directory . basename ( $ file -> getRealPath ( ) , '.php' ) ] = $ file -> getRealPath ( ) ; } ksort ( $ files , SORT_NATURAL ) ; return $ files ; }
Get all configuration files.

@param mixed $path

@return array
Get all configuration files .