Skip to content

Commit

Permalink
Activated pretty printing during JSON encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
webmozart committed Jan 5, 2016
1 parent 8ca4b18 commit 5bdf319
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/AbstractJsonRepository.php
Expand Up @@ -105,6 +105,8 @@ public function __construct($path, $baseDirectory, $validateJson = false, Change
$this->baseDirectory = $baseDirectory;
$this->path = Path::makeAbsolute($path, $baseDirectory);
$this->encoder = new JsonEncoder();
$this->encoder->setPrettyPrinting(true);
$this->encoder->setEscapeSlash(false);

if ($validateJson) {
$this->schemaPath = realpath(__DIR__.'/../res/schema/path-mappings-schema-1.0.json');
Expand Down
2 changes: 2 additions & 0 deletions src/ChangeStream/JsonChangeStream.php
Expand Up @@ -50,6 +50,8 @@ public function __construct($path)
{
$this->path = $path;
$this->encoder = new JsonEncoder();
$this->encoder->setPrettyPrinting(true);
$this->encoder->setEscapeSlash(false);
}

/**
Expand Down

0 comments on commit 5bdf319

Please sign in to comment.