Line 42 in /var/www/vhosts/voelklinger-huette.org/httpdocs/dev.voelklinger-huette.org/vendor/silverstripe/framework/src/i18n/Messages/YamlReader.php
33 } 34 // Load 35 $yaml = $this->getParser()->parse(file_get_contents($path)); 36 if (empty($yaml[$locale])) { 37 return []; 38 } 39 // Normalise messages 40 return $this->normaliseMessages($yaml[$locale]); 41 } catch (ParseException $exception) { 42 throw new InvalidResourceException(sprintf('Error parsing YAML, invalid file "%s". Message: %s', $path, $exception->getMessage()), 0, $exception); 43 } 44 } 45 46 /** 47 * Flatten [class => [ key1 => value1, key2 => value2]] into [class.key1 => value1, class.key2 => value2] 48 *