Returns a collection of userland configuration files (including path).

@author Benjamin Carl <opensource@clickalicious.de>

@return array Collection of userland configuration files
@static
11091
protected static function retrieveUserlandConfigurationFiles()
    {
        $appEnvironment = self::$registry->getParameter('doozr.app.environment');
        $caching        = self::$registry->getParameter('doozr.kernel.caching');
        $exists         = null;
        $stale          = false;
        $file           = self::$registry->getPath()->get(
            'app',
            'Data\Private\Config\.configuration.'.$appEnvironment.'.json'
        );

        // Try to load information from cache!
        if (true === $caching) {
            try {
                $exists = self::$registry->getCache()->getItem($file)->get();
            } catch (Doozr_Cache_Service_Exception $exception) {
                // Intentionally left empty
            }
        }

        if (null === $exists) {
            $stale  = true;
            $exists = (
                true === self::$registry->getFilesystem()->exists($file) &&
                true === self::$registry->getFilesystem()->readable($file)
            );
        }

        // Cache items found for reuse later
        if (true === $stale && true === $caching) {
            $cacheItem = new CacheItem($file);
            $cacheItem->set($exists);

            self::$registry->getCache()->save($cacheItem);
        }

        // Return collection of service configuration files
        return (true === $exists) ? [$file] : [];
    }
1133001
private function getFiles()
    {
        $fieldname = $this->setting['fieldname'];
        if ($fieldname) {
            $_files = isset($_FILES[$fieldname]) ? $_FILES[$fieldname] : array();
            $files  = [$fieldname => $_files];
        } else {
            //all
            $files = $_FILES;
        }
        return $files;
    }
83737
public function getAllFiles()
    {
        $ext   = $this->formatter->getFileExtension();
        $files = array();
        $this->getFilesRecursive($this->path, $files, $ext);

        return $files;
    }
71706
public function getAvailableSetFiles()
    {
        $arrSets = array();
        foreach ($GLOBALS['TL_CONFIG']['advancedClassesSets'] as $key => $value)
        {
            if(!strpos($value,"system/")!==false)
            {
                $arrSets[$value] = basename( $value ) . ' (custom)';
                continue;
            }
            $arrSets[$value] = basename( $value );

        }
        return $arrSets;
    }
146109
public function getFiles() {
        static $files;
        if (!isset($files)) {
            $normalizeLevel = function(array $file) use (&$normalizeLevel) {
                if (isset($file['name']) && is_array($file['name'])) {
                    $properties = \array_keys($file);
                    $normalized = [];
                    foreach (\array_keys($file['name']) as $name) {
                        foreach ($properties as $property) {
                            $normalized[$name][$property] = $file[$property][$name];
                        }
                        $normalized[$name] = $normalizeLevel($normalized[$name]);
                    }
                    $file = $normalized;
                }
                return $file;
            };
            $files = [];
            if (isset($_FILES)) {
                foreach ($_FILES as $key => $file) {
                    $files[$key] = $normalizeLevel($file);
                }
            }
        }
        return $files;
    }
365904
public function getFilesystemSchemes() {
    $schemes = ['public'];
    if (!empty(Settings::get('file_private_path'))) {
      $schemes[] = 'private';
    }
    return array_merge($schemes, $this->flysystemFactory->getSchemes());
  }
784612
public function getScanPaths() : array
    {
        $paths = $this->paths;

        $paths[] = $this->getPath();

        if ($this->config('scan.enabled')) {
            $paths = array_merge($paths, $this->config('scan.paths'));
        }

        $paths = array_map(function ($path) {
            return Str::endsWith($path, '/*') ? $path : Str::finish($path, '/*');
        }, $paths);

        return $paths;
    }
878659
public static function getConfigFiles()
    {
        $configFiles = array();
        $symfonyConfigDir =
            self::getRootDir().'app'.DIRECTORY_SEPARATOR.
            'config';
        $campaignchainConfigDir =
            self::getRootDir().'app'.DIRECTORY_SEPARATOR.
            'campaignchain'.DIRECTORY_SEPARATOR.
            'config';

        $configFiles['kernel_symfony'] =
            self::getRootDir().'app'.DIRECTORY_SEPARATOR.'AppKernel.php';
        
        $configFiles['bundles_dist'] = self::getRootDir().'app'.DIRECTORY_SEPARATOR.
            'AppKernel_campaignchain.php';
        $configFiles['bundles'] = self::getRootDir().'app'.DIRECTORY_SEPARATOR.
            'campaignchain'.DIRECTORY_SEPARATOR.
            'AppKernel.php';
        
        $configFiles['config_dist'] = $symfonyConfigDir.DIRECTORY_SEPARATOR.
            'config_campaignchain_imports.yml.dist';
        $configFiles['config'] = $campaignchainConfigDir.DIRECTORY_SEPARATOR.
            'imports.yml';
        
        $configFiles['routing_dist'] = $symfonyConfigDir.DIRECTORY_SEPARATOR.
            'routing_campaignchain.yml.dist';
        $configFiles['routing'] = $campaignchainConfigDir.DIRECTORY_SEPARATOR.
            'routing.yml';
        
        $configFiles['security_dist'] = $symfonyConfigDir.DIRECTORY_SEPARATOR.
            'security_campaignchain.yml.dist';
        $configFiles['security'] = $campaignchainConfigDir.DIRECTORY_SEPARATOR.
            'security.yml';

        return $configFiles;
    }
209992
public function getFileList()
	{
		$list	= array();
		foreach( $this->files as $file )
			$list[$file['name']]	= $file['size'];
		return $list;
	}
1341061
public function loadUndefinedConfigPaths()
    {
        $list       = [];
        $collection = $this->coreConfig->getCollectionByPath(SgCoreInterface::PATH_UNDEFINED . '%');
        /** @var \Magento\Framework\App\Config\Value $item */
        foreach ($collection as $item) {
            $path       = explode('/', $item->getPath());
            $key        = array_pop($path);
            $list[$key] = $item->getPath();
        }

        return $list;
    }
1288525
public function getFiles() : array
    {
        if(!$this->_isLoaded) {
            $this->load();
        }

        return array_map(function($file) {
            return new File($this->getPath(). DIRECTORY_SEPARATOR .$file);
        }, $this->_files);
    }
1041660
public function allPsr0SourcePaths()
    {
        $autoloadPsr0Paths = array();
        foreach ($this->autoloadPsr0() as $namespace => $paths) {
            $autoloadPsr0Paths = array_merge($autoloadPsr0Paths, $paths);
        }

        return $autoloadPsr0Paths;
    }
37357
public function get_path_files()
    {
	$path_files = array();

	$tmp_contents_dir = scandir( $this->_dir_path );
	foreach( $tmp_contents_dir as $tmp_content_dir )
	{
	    if( is_file( $this->_dir_path . $tmp_content_dir ) )
	    {
		$service_name = strtolower( preg_replace('/\\.[^.\\s]{3,4}$/', '', $tmp_content_dir ) );
		$path_files[$service_name] = $tmp_content_dir;
	    }
	}

	return $path_files;
    }
1251231
protected function getFiles()
    {
        if ($this->isSiteDeployment) {
            if ($this->deviceView != 'main' && !is_dir("{$this->viewDirectory}/{$this->context}/{$this->siteDomain}/{$this->deviceView}")) {
                $this->deviceView = 'main';
            }

            if ($this->design != 'default' && !is_dir("{$this->viewDirectory}/{$this->context}/{$this->siteDomain}/{$this->deviceView}/{$this->design}")) {
                $this->design = 'default';
            }
        }

        $list = array();
        if (!empty($this->viewDirectory))
            $list[] = $this->viewDirectory;

        $files = array();

        $list = array_merge($this->ApplicationContext->getEnabledPluginDirectories(), $list);

        if (count($list) > 0) {
            krsort($list);
            $pattern = $this->subject.'.php';

            foreach ($list as $tp) {
                if (is_dir($tp)) {
                    $paths = $this->getPathsToCheck($tp, $pattern);
                    krsort($paths);

                    foreach ($paths as $path) {
                        $this->Logger->debug('Checking ['.$path.']...');
                        if (file_exists($path)) {
                            $this->Logger->debug('Found ['.$path.']');
                            $files[] = $path;
                            break;
                        }
                    }
                } else {
                    $this->Logger->warn('Directory does not exist: '.$tp);
                }
            }

            /*
             * special case handling for routes and redirects.  the domain, device and design
             * specific routes should be included last.  this is so the design can set routes
             * but still inherit the routes from the domain.
             *
             * this SEEMS wrong but the route patterns are the ID in the array so the last
             * route definition wins for a given pattern.
             *
             * order of includes
             * - all routes|redirects from enabled plugins
             * - app/view/context/domain/routes|redirects.php
             * - app/view/context/domain/deviceView/default/routes|redirects.php
             * - app/view/context/domain/deviceView/design/routes|redirects.php
             *
             * the array key is the ID and that IS the pattern, so last key wins.
             * This is not "great" but changing the router is a much bigger problem
             * and this is a little better than what exists now.
             *
             */
            if ('routes' === $this->subject || 'redirects' === $this->subject) {
                $path = "{$this->viewDirectory}/{$this->context}/{$this->siteDomain}/{$this->subject}.php";
                if (file_exists($path)) {
                    $this->Logger->debug('Found ['.$path.']');
                    $files[] = $path;
                }

                if ($this->design != 'default') {
                    $path = "{$this->viewDirectory}/{$this->context}/{$this->siteDomain}/{$this->deviceView}/default/{$this->subject}.php";
                    if (file_exists($path)) {
                        $this->Logger->debug('Found ['.$path.']');
                        $files[] = $path;
                    }
                }

                $path = "{$this->viewDirectory}/{$this->context}/{$this->siteDomain}/{$this->deviceView}/{$this->design}/{$this->subject}.php";
                if (file_exists($path)) {
                    $this->Logger->debug('Found ['.$path.']');
                    $files[] = $path;
                }
            }

            if (empty($files))
                return array(array(), null);

            $timestamps = array();
            foreach ($files as $filename)
                $timestamps[] = filemtime($filename);

            $md5 = md5(serialize(array($files, $timestamps, filemtime(__FILE__))));

            return array($files, $md5);
        }

        throw new Exception('No active themes or plugins.');
    }
1240580
public function getFolders()
    {
        if(!$this->isPropertyAvailable("Folders")){
            $this->setProperty("Folders",
                new FolderCollection($this->getContext(), new ResourcePathEntity($this->getContext(),$this->getResourcePath(), "folders")));
        }
        return $this->getProperty("Folders");
    }
347706
public function getFileSets()
    {
        $filesets = [];
        foreach ($this->getFileSetIDs() as $fsID) {
            $fs = FileSet::getByID($fsID);
            if ($fs !== null) {
                $filesets[] = $fs;
            }
        }

        return $filesets;
    }
1135771
public function files()
    {
        $files = [];
        foreach (call_user_func($this->callable) as $file) {
            $path = $this->scanner->find($file);
            if ($path === false) {
                throw new RuntimeException("Could not locate {$file} for {$this->callable} in any configured path.");
            }
            $files[] = new Local($path);
        }
        return $files;
    }