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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user