Mercurial > hg > isophonics-drupal-site
view core/lib/Drupal/Core/Discovery/YamlDiscovery.php @ 11:bfffd8d7479a
Move drupal/core from "replace" to "require" section, to ensure Composer updates it
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:51:18 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php namespace Drupal\Core\Discovery; use Drupal\Component\Discovery\YamlDiscovery as ComponentYamlDiscovery; use Drupal\Core\Serialization\Yaml; /** * Provides discovery for YAML files within a given set of directories. * * This overrides the Component file decoding with the Core YAML implementation. */ class YamlDiscovery extends ComponentYamlDiscovery { /** * {@inheritdoc} */ protected function decode($file) { return Yaml::decode(file_get_contents($file)) ?: []; } }