Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/translation/Dumper/YamlFileDumper.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
21 * | 21 * |
22 * @author Michel Salib <michelsalib@hotmail.com> | 22 * @author Michel Salib <michelsalib@hotmail.com> |
23 */ | 23 */ |
24 class YamlFileDumper extends FileDumper | 24 class YamlFileDumper extends FileDumper |
25 { | 25 { |
26 private $extension; | |
27 | |
28 public function __construct(/**string */$extension = 'yml') | |
29 { | |
30 $this->extension = $extension; | |
31 } | |
32 | |
26 /** | 33 /** |
27 * {@inheritdoc} | 34 * {@inheritdoc} |
28 */ | 35 */ |
29 public function formatCatalogue(MessageCatalogue $messages, $domain, array $options = array()) | 36 public function formatCatalogue(MessageCatalogue $messages, $domain, array $options = array()) |
30 { | 37 { |
48 /** | 55 /** |
49 * {@inheritdoc} | 56 * {@inheritdoc} |
50 */ | 57 */ |
51 protected function getExtension() | 58 protected function getExtension() |
52 { | 59 { |
53 return 'yml'; | 60 return $this->extension; |
54 } | 61 } |
55 } | 62 } |