diff --git a/platform/drupal/packages_8.inc b/platform/drupal/packages_8.inc index e082f587ca455bec1df032de2bcde95176ab7155..e909d1e30af1dbccaf765a912bfd95d80184cd23 100644 --- a/platform/drupal/packages_8.inc +++ b/platform/drupal/packages_8.inc @@ -19,7 +19,7 @@ function _provision_drupal_find_themes($scope, $key = '') { $engines = array_merge($engines, drush_scan_directory($path . "/engines", "/\.engine$/", array('.', '..', 'CVS', '.svn'), 0, TRUE, 'name')); } foreach ($files as $name => $file) { - $files[$name]->info = Symfony\Component\Yaml\Yaml::parse($file->filename); + $files[$name]->info = Symfony\Component\Yaml\Yaml::parse(file_get_contents($file->filename)); if (!empty($files[$name]->info['name'])) { $files[$name]->name = $files[$name]->info['name']; } @@ -139,7 +139,7 @@ function _provision_find_profiles() { $info_files = drush_scan_directory($profile_dir, "/\.info.yml$/"); foreach ($info_files as $path => $info_file) { $path = realpath($path); - $info = Symfony\Component\Yaml\Yaml::parse($path); + $info = Symfony\Component\Yaml\Yaml::parse(file_get_contents($path)); if ($info['type'] == 'profile' && (!isset($info['hidden']) || !$info['hidden'])) { $profile = new stdClass(); $profile->name = $info['name']; diff --git a/platform/provision_drupal.drush.inc b/platform/provision_drupal.drush.inc index 233d60f28af34cfa4ed0251b96519f7e0060d244..110b3fe341b0e732774494a60af26e0d4cd693f9 100644 --- a/platform/provision_drupal.drush.inc +++ b/platform/provision_drupal.drush.inc @@ -561,7 +561,7 @@ function _provision_drupal_find_modules($scope, $key = '') { unset($files[$name]); continue; } - $files[$name]->info = Symfony\Component\Yaml\Yaml::parse($yaml_file); + $files[$name]->info = Symfony\Component\Yaml\Yaml::parse(file_get_contents($yaml_file)); if (!empty($files[$name]->info['name'])) { $files[$name]->name = $files[$name]->info['name']; }