diff --git a/core/includes/common.inc b/core/includes/common.inc index 8596f86..36310a7 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -3,7 +3,7 @@ use Symfony\Component\DependencyInjection\Container; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; -use Symfony\Component\Yaml\Yaml; +use Symfony\Component\Yaml\Parser; use Drupal\Component\PhpStorage\PhpStorageFactory; use Drupal\Component\Utility\NestedArray; use Drupal\Core\Cache\CacheBackendInterface; @@ -6215,8 +6215,8 @@ function drupal_parse_info_file($filename) { $info[$filename] = array(); } else { - $data = file_get_contents($filename); - $info[$filename] = Yaml::parse($filename); + $parser = new Parser(); + $info[$filename] = $parser->parse(file_get_contents($filename)); if (isset($info[$filename]['version']) && $info[$filename]['version'] === 'VERSION') { $info[$filename]['version'] = VERSION; }