Skip to content

Commit

Permalink
resolving #8
Browse files Browse the repository at this point in the history
  • Loading branch information
r-stanley committed Feb 10, 2017
1 parent 4870aa3 commit 65ac555
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Model/Component/YamlComponentAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ protected function parseData($source = null)
);
}

$parser = new Yaml();
return $parser->parse(file_get_contents($source));
$path = BP . '/' . $source;
$data = file_get_contents($path);
return Yaml::parse($data);
} catch (ParseException $e) {
throw new ComponentException(
sprintf('The %s component failed to parse. Error: %s.', $source, $e->getMessage())
Expand Down

0 comments on commit 65ac555

Please sign in to comment.