core/modules/serialization/src/Encoder/JsonEncoder.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/modules/serialization/src/Encoder/JsonEncoder.php b/core/modules/serialization/src/Encoder/JsonEncoder.php index 18c6066..d8b945e 100644 --- a/core/modules/serialization/src/Encoder/JsonEncoder.php +++ b/core/modules/serialization/src/Encoder/JsonEncoder.php @@ -23,14 +23,14 @@ class JsonEncoder extends BaseJsonEncoder implements EncoderInterface, DecoderIn /** * {@inheritdoc} */ - public function __construct(JsonEncode $encodingImpl = null, JsonDecode $decodingImpl = null) { - // Encode <, >, ', &, and " for RFC4627-compliant JSON, which may also be - // embedded into HTML. - // @see \Symfony\Component\HttpFoundation\JsonResponse - $json_encoding_options = JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT; - $this->encodingImpl = $encodingImpl ?: new JsonEncode($json_encoding_options); - $this->decodingImpl = $decodingImpl ?: new JsonDecode(true); - } +// public function __construct(JsonEncode $encodingImpl = null, JsonDecode $decodingImpl = null) { +// // Encode <, >, ', &, and " for RFC4627-compliant JSON, which may also be +// // embedded into HTML. +// // @see \Symfony\Component\HttpFoundation\JsonResponse +// $json_encoding_options = JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT; +// $this->encodingImpl = $encodingImpl ?: new JsonEncode($json_encoding_options); +// $this->decodingImpl = $decodingImpl ?: new JsonDecode(true); +// } /** * {@inheritdoc}