public function readByFilename($path, $filename)
    {
        $config = false;
        $configFilePath = rtrim($path, '/') . '/' . $filename;

        if (is_file($configFilePath)) {
            $yamlParser = new YamlParser();
            $config = $yamlParser->parse(file_get_contents($configFilePath));
        }

        return $config;
    }
public function readByFilename($path, $filename)
    {
        $config = false;
        $configFilePath = rtrim($path, '/') . '/' . $filename;

        if (is_file($configFilePath)) {
            $yamlParser = new YamlParser();
            $config = $yamlParser->parse(file_get_contents($configFilePath));
        }

        return $config;
    }
public function readByFilename ( $ path , $ filename ) { $ config = false ; $ configFilePath = rtrim ( $ path , '/' ) . '/' . $ filename ; if ( is_file ( $ configFilePath ) ) { $ yamlParser = new YamlParser ( ) ; $ config = $ yamlParser -> parse ( file_get_contents ( $ configFilePath ) ) ; } return $ config ; }
Read all the configuration given a path and a filename

@param string $path     Path
@param string $filename File name


@return array Configuration
Read all the configuration given a path and a filename