diff --git a/src/Companienv/Companion.php b/src/Companienv/Companion.php index 0e9eee6..497e95b 100644 --- a/src/Companienv/Companion.php +++ b/src/Companienv/Companion.php @@ -4,10 +4,10 @@ use Companienv\DotEnv\Block; use Companienv\DotEnv\MissingVariable; +use Companienv\DotEnv\ValueFormatter; use Companienv\DotEnv\Parser; use Companienv\IO\FileSystem\FileSystem; use Companienv\IO\Interaction; -use Jackiedo\DotenvEditor\DotenvFormatter; use Jackiedo\DotenvEditor\DotenvWriter; class Companion @@ -89,7 +89,7 @@ private function writeVariable(string $name, string $value) $variablesInFileHash = $this->getDefinedVariablesHash(); - $writer = new DotenvWriter(new DotenvFormatter()); + $writer = new DotenvWriter(new ValueFormatter()); $fileContents = $this->fileSystem->getContents($this->envFileName); $writer->setBuffer($fileContents); diff --git a/src/Companienv/DotEnv/ValueFormatter.php b/src/Companienv/DotEnv/ValueFormatter.php new file mode 100644 index 0000000..248f8e7 --- /dev/null +++ b/src/Companienv/DotEnv/ValueFormatter.php @@ -0,0 +1,21 @@ +