Skip to content

Commit 0c12c0c

Browse files
committed
[FrameworkBundle] Allow .yaml file extension everywhere
1 parent b6d9301 commit 0c12c0c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Dumper/YamlFileDumper.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@
2323
*/
2424
class YamlFileDumper extends FileDumper
2525
{
26+
private $extension;
27+
28+
public function __construct(/**string */$extension = 'yml')
29+
{
30+
$this->extension = $extension;
31+
}
32+
2633
/**
2734
* {@inheritdoc}
2835
*/
@@ -50,6 +57,6 @@ public function formatCatalogue(MessageCatalogue $messages, $domain, array $opti
5057
*/
5158
protected function getExtension()
5259
{
53-
return 'yml';
60+
return $this->extension;
5461
}
5562
}

0 commit comments

Comments
 (0)