Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ProklUng committed Aug 16, 2021
1 parent 64a00f3 commit e6a6ec3
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 41 deletions.
2 changes: 1 addition & 1 deletion Twig/Extension/GuzzleExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function prettyPrint(string $code, string $lang)
{
switch ($lang) {
case 'json':
return json_encode(json_decode($code), JSON_PRETTY_PRINT);
return json_encode(json_decode($code), JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
case 'xml':
$xml = new \DomDocument('1.0');
$xml->preserveWhiteSpace = false;
Expand Down
81 changes: 41 additions & 40 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,43 +1,44 @@
{
"name": "proklung/symfony-guzzle-bundle",
"description": "Symfony bundle for work with Guzzle.",
"type": "symfony-bundle",
"license": "MIT",
"authors": [
{
"name": "Gavrilov Fedy",
"email": "fedor.gavrilov.75@mail.ru",
"homepage": "https://github.com/ProklUng"
}
],
"support": {
"issues": "https://github.com/ProklUng/symfony.guzzle.bundle/issues",
"source": "https://github.com/ProklUng/symfony.guzzle.bundle"
},
"autoload": {
"psr-4": {
"Prokl\\GuzzleBundle\\": "",
"Prokl\\GuzzleBundle\\Tests\\": "Tests"
},
"exclude-from-classmap": [
"Tests/"
]
},
"require": {
"php": ">=7.1",
"psr/cache": "^1.0",
"psr/simple-cache": "^1.0",
"symfony/dependency-injection": "^4.4 || ^5.0",
"symfony/http-kernel": "^4.4 || ^5.0",
"symfony/config": "~4|~5",
"guzzlehttp/guzzle": "~6|~7",
"twig/twig": "~2 | ~3",
"doctrine/cache": "^1",
"symfony/filesystem": "~4|~5"
},
"require-dev": {
"proklung/phpunit-testing-tools": "^1.3.0",
"icanhazstring/composer-unused": "^0.7.5"
"name": "proklung/symfony-guzzle-bundle",
"description": "Symfony bundle for work with Guzzle.",
"type": "symfony-bundle",
"license": "MIT",
"authors": [
{
"name": "Gavrilov Fedy",
"email": "fedor.gavrilov.75@mail.ru",
"homepage": "https://github.com/ProklUng"
}

],
"support": {
"issues": "https://github.com/ProklUng/symfony.guzzle.bundle/issues",
"source": "https://github.com/ProklUng/symfony.guzzle.bundle"
},
"autoload": {
"psr-4": {
"Prokl\\GuzzleBundle\\": "",
"Prokl\\GuzzleBundle\\Tests\\": "Tests"
},
"exclude-from-classmap": [
"Tests/"
]
},
"require": {
"php": ">=7.1 || ^8.0",
"psr/cache": "^1.0",
"psr/simple-cache": "^1.0",
"symfony/dependency-injection": "^4.4 || ^5.0",
"symfony/http-kernel": "^4.4 || ^5.0",
"symfony/config": "^4.4 || ^5.0",
"symfony/filesystem": "^4.4 || ^5.0",
"guzzlehttp/guzzle": "~6|~7",
"twig/twig": "~2 | ~3",
"doctrine/cache": "^1",
"ext-json": "*",
"ext-dom": "*"
},
"require-dev": {
"proklung/phpunit-testing-tools": "^1.4.0",
"icanhazstring/composer-unused": "^0.7.5"
}
}

0 comments on commit e6a6ec3

Please sign in to comment.