Skip to content

Commit

Permalink
feat: support encode config data to INI file
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Aug 7, 2022
1 parent 654e402 commit a527c60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ConfigUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ public static function encodeToString(array $data, string $format, int $flags =
{
switch ($format) {
case ConfigBox::FORMAT_INI:
return Ini::encode($data, $flags);
case ConfigBox::FORMAT_TOML:
throw new RuntimeException('not support encode data to ' . $format);
case ConfigBox::FORMAT_PHP:
Expand Down

0 comments on commit a527c60

Please sign in to comment.