1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 17:16:18 +02:00

Migrate maxNormalizeDepth/maxNormalizeItemCount props and setters to NormalizerFormatter

This commit is contained in:
Jordi Boggiano
2018-06-08 23:09:04 +02:00
parent 518288c5c5
commit 800fe2cc1a
4 changed files with 97 additions and 35 deletions

View File

@@ -27,8 +27,6 @@ class JsonFormatter extends NormalizerFormatter
protected $batchMode;
protected $appendNewline;
protected $maxNormalizeDepth = 9;
protected $maxNormalizeItemCount = 1000;
/**
* @var bool
@@ -61,32 +59,6 @@ class JsonFormatter extends NormalizerFormatter
return $this->appendNewline;
}
/**
* The maximum number of normalization levels to go through
*/
public function getMaxNormalizeDepth(): int
{
return $this->maxNormalizeDepth;
}
public function setMaxNormalizeDepth(int $maxNormalizeDepth): void
{
$this->maxNormalizeDepth = $maxNormalizeDepth;
}
/**
* The maximum number of items to normalize per level
*/
public function getMaxNormalizeItemCount(): int
{
return $this->maxNormalizeItemCount;
}
public function setMaxNormalizeItemCount(int $maxNormalizeItemCount): void
{
$this->maxNormalizeItemCount = $maxNormalizeItemCount;
}
/**
* {@inheritdoc}
*/