Skip to content

Commit 2122db4

Browse files
prolicNyholm
authored andcommitted
add options to XliffConverter::catalogueToContent (#8)
* add options to XliffConverter::catalogueToContent * add default value
1 parent ec9c2b4 commit 2122db4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/XliffConverter.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,14 @@ public static function contentToCatalogue($content, $locale, $domain)
4343
/**
4444
* @param MessageCatalogue $catalogue
4545
* @param string $domain
46+
* @param array $options
4647
*
4748
* @return string
4849
*/
49-
public static function catalogueToContent(MessageCatalogue $catalogue, $domain)
50+
public static function catalogueToContent(MessageCatalogue $catalogue, $domain, array $options = [])
5051
{
5152
$dumper = new XliffDumper();
5253

53-
return $dumper->getFormattedCatalogue($catalogue, $domain);
54+
return $dumper->getFormattedCatalogue($catalogue, $domain, $options);
5455
}
5556
}

0 commit comments

Comments
 (0)