public function get($path, array $sourceConfig = null)
    {
        $config = Yaml::parse($this->getFileContent($path));
        
        if (false === empty($sourceConfig)) {
            return array_replace_recursive($sourceConfig, $config);
        }
        
        return $config;
    }
public function get($path, array $sourceConfig = null)
    {
        $config = Yaml::parse($this->getFileContent($path));
        
        if (false === empty($sourceConfig)) {
            return array_replace_recursive($sourceConfig, $config);
        }
        
        return $config;
    }
public function get ( $ path , array $ sourceConfig = null ) { $ config = Yaml :: parse ( $ this -> getFileContent ( $ path ) ) ; if ( false === empty ( $ sourceConfig ) ) { return array_replace_recursive ( $ sourceConfig , $ config ) ; } return $ config ; }
Returns the config as an array.

@param string $path Path to the file.
@param array $sourceConfig Config array the result should be merged with.
@return array
@throws \Symfony\Component\Yaml\Exception\ParseException When a parse error occurs.
Returns the config as an array .