1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 12:47:39 +02:00

Merge pull request #1307 from tikoflano/patch-1

Enable adding/removing options to json_encode()
This commit is contained in:
Jordi Boggiano
2019-07-01 17:02:27 +02:00
committed by GitHub

View File

@@ -379,4 +379,14 @@ class NormalizerFormatter implements FormatterInterface
return $date->format($this->dateFormat);
}
protected function addJsonEncodeOption($option)
{
$this->jsonEncodeOptions |= $option;
}
protected function removeJsonEncodeOption($option)
{
$this->jsonEncodeOptions ^= $option;
}
}