public function load(string $pathAndFilename, bool $allowSplitSource = false): array
    {
        $this->detectFilesWithWrongExtension($pathAndFilename, $allowSplitSource);
        $pathsAndFileNames = [$pathAndFilename . '.yaml'];
        if ($allowSplitSource === true) {
            $splitSourcePathsAndFileNames = glob($pathAndFilename . '.*.yaml');
            $splitSourcePathsAndFileNames = array_merge($splitSourcePathsAndFileNames, glob($pathAndFilename . '.*.yml'));
            if ($splitSourcePathsAndFileNames !== false) {
                sort($splitSourcePathsAndFileNames);
                $pathsAndFileNames = array_merge($pathsAndFileNames, $splitSourcePathsAndFileNames);
            }
        }
        $configuration = [];
        foreach ($pathsAndFileNames as $pathAndFilename) {
            $configuration = $this->mergeFileContent($pathAndFilename, $configuration);
        }
        return $configuration;
    }
public function load(string $pathAndFilename, bool $allowSplitSource = false): array
    {
        $this->detectFilesWithWrongExtension($pathAndFilename, $allowSplitSource);
        $pathsAndFileNames = [$pathAndFilename . '.yaml'];
        if ($allowSplitSource === true) {
            $splitSourcePathsAndFileNames = glob($pathAndFilename . '.*.yaml');
            $splitSourcePathsAndFileNames = array_merge($splitSourcePathsAndFileNames, glob($pathAndFilename . '.*.yml'));
            if ($splitSourcePathsAndFileNames !== false) {
                sort($splitSourcePathsAndFileNames);
                $pathsAndFileNames = array_merge($pathsAndFileNames, $splitSourcePathsAndFileNames);
            }
        }
        $configuration = [];
        foreach ($pathsAndFileNames as $pathAndFilename) {
            $configuration = $this->mergeFileContent($pathAndFilename, $configuration);
        }
        return $configuration;
    }
public function load ( string $ pathAndFilename , bool $ allowSplitSource = false ) : array { $ this -> detectFilesWithWrongExtension ( $ pathAndFilename , $ allowSplitSource ) ; $ pathsAndFileNames = [ $ pathAndFilename . '.yaml' ] ; if ( $ allowSplitSource === true ) { $ splitSourcePathsAndFileNames = glob ( $ pathAndFilename . '.*.yaml' ) ; $ splitSourcePathsAndFileNames = array_merge ( $ splitSourcePathsAndFileNames , glob ( $ pathAndFilename . '.*.yml' ) ) ; if ( $ splitSourcePathsAndFileNames !== false ) { sort ( $ splitSourcePathsAndFileNames ) ; $ pathsAndFileNames = array_merge ( $ pathsAndFileNames , $ splitSourcePathsAndFileNames ) ; } } $ configuration = [ ] ; foreach ( $ pathsAndFileNames as $ pathAndFilename ) { $ configuration = $ this -> mergeFileContent ( $ pathAndFilename , $ configuration ) ; } return $ configuration ; }
Loads the specified configuration file and returns its content as an
array. If the file does not exist or could not be loaded, an empty
array is returned

@param string $pathAndFilename Full path and filename of the file to load, excluding the file extension (ie. ".yaml")
@param boolean $allowSplitSource If true, the type will be used as a prefix when looking for configuration files
@return array
@throws ParseErrorException
@throws \Neos\Flow\Configuration\Exception
Loads the specified configuration file and returns its content as an array . If the file does not exist or could not be loaded an empty array is returned