5 * Parser for YAML format.
8 namespace Drush\Make\Parser;
10 use Symfony\Component\Yaml\Yaml;
12 class ParserYaml implements ParserInterface {
17 public static function supportedFile($filename) {
18 $info = pathinfo($filename);
19 return isset($info['extension']) && $info['extension'] === 'yml';
25 public static function parse($data) {
26 return Yaml::parse($data);