src/Foundation/Bootstrap/ReadConfiguration.php
protected function getThemeConfigurationFiles(Container $app)
    {
        $files = [];
        $config_path = $app->make('config')->get('theme.config_path', realpath($app->make('wp.theme')->getRoot()) . '/config');
        
        if (file_exists($config_path) && is_dir($config_path)) {
            foreach (Finder::create()->files()->name('*.php')->in($config_path) as $file) {
                $nesting = $this->getThemeConfigurationNesting($file, $config_path);
                
                $files[$nesting . basename($file->getRealPath(), '.php')] = $file->getRealPath();
            }
        }
        
        return $files;
    }
protected function getThemeConfigurationFiles(Container $app)
    {
        $files = [];
        $config_path = $app->make('config')->get('theme.config_path', realpath($app->make('wp.theme')->getRoot()) . '/config');
        
        if (file_exists($config_path) && is_dir($config_path)) {
            foreach (Finder::create()->files()->name('*.php')->in($config_path) as $file) {
                $nesting = $this->getThemeConfigurationNesting($file, $config_path);
                
                $files[$nesting . basename($file->getRealPath(), '.php')] = $file->getRealPath();
            }
        }
        
        return $files;
    }
protected function getThemeConfigurationFiles ( Container $ app ) { $ files = [ ] ; $ config_path = $ app -> make ( 'config' ) -> get ( 'theme.config_path' , realpath ( $ app -> make ( 'wp.theme' ) -> getRoot ( ) ) . '/config' ) ; if ( file_exists ( $ config_path ) && is_dir ( $ config_path ) ) { foreach ( Finder :: create ( ) -> files ( ) -> name ( '*.php' ) -> in ( $ config_path ) as $ file ) { $ nesting = $ this -> getThemeConfigurationNesting ( $ file , $ config_path ) ; $ files [ $ nesting . basename ( $ file -> getRealPath ( ) , '.php' ) ] = $ file -> getRealPath ( ) ; } } return $ files ; }
Get all of the configuration files for the theme.

@param  \Illuminate\Contracts\Foundation\Application  $app
@return array
Get all of the configuration files for the theme .