From 65ac555f578784837d0377e538860cd25af96cbb Mon Sep 17 00:00:00 2001 From: Robert Stanley Date: Fri, 10 Feb 2017 15:19:57 +0000 Subject: [PATCH] resolving https://github.com/ctidigital/magento2-configurator/issues/8 --- Model/Component/YamlComponentAbstract.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Model/Component/YamlComponentAbstract.php b/Model/Component/YamlComponentAbstract.php index ef15c0c..14a7910 100644 --- a/Model/Component/YamlComponentAbstract.php +++ b/Model/Component/YamlComponentAbstract.php @@ -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())