Classes/Settings/Settings.php
protected function retrieveAllFiles(array $paths)
    {
        $files = [];

        foreach ($paths as $path) {
            $newFiles = [];

            try {
                $newFiles = $this->retrieveFiles($path);
            } catch (FileSystemException $e) {
                continue;
            } finally {
                $files = array_merge($files, $newFiles);
            }
        }

        return $files;
    }
protected function retrieveAllFiles(array $paths)
    {
        $files = [];

        foreach ($paths as $path) {
            $newFiles = [];

            try {
                $newFiles = $this->retrieveFiles($path);
            } catch (FileSystemException $e) {
                continue;
            } finally {
                $files = array_merge($files, $newFiles);
            }
        }

        return $files;
    }
protected function retrieveAllFiles ( array $ paths ) { $ files = [ ] ; foreach ( $ paths as $ path ) { $ newFiles = [ ] ; try { $ newFiles = $ this -> retrieveFiles ( $ path ) ; } catch ( FileSystemException $ e ) { continue ; } finally { $ files = array_merge ( $ files , $ newFiles ) ; } } return $ files ; }
Retrieve all yaml files from an array of directories.

@param array $paths An array of directories to scan

@return array

@throws FileSystemException
Retrieve all yaml files from an array of directories .