summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkristofferwiklund2017-09-28 11:25:36 -0400
committerHerman van Rink2017-09-29 20:07:46 +0200
commit9db993555b5e27ea1807f878179cb59ef85fe7ef (patch)
tree2fa8b993e561eaa8586b85ac765a1f297c39f89b
parent898e78b9815f5e7ff21de249757e33a535d9b3aa (diff)
Issue #2911855 by kristofferwiklund: Drupal 8.4 support: Fix loading of module YML data.
-rw-r--r--platform/drupal/packages_8.inc4
-rw-r--r--platform/provision_drupal.drush.inc2
2 files changed, 3 insertions, 3 deletions
diff --git a/platform/drupal/packages_8.inc b/platform/drupal/packages_8.inc
index edf7969..2aad7e1 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 233d60f..110b3fe 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'];
}