You are here

private function JsonDecode::resolveContext in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Encoder/JsonDecode.php \Symfony\Component\Serializer\Encoder\JsonDecode::resolveContext()

Merges the default options of the Json Decoder with the passed context.

Parameters

array $context:

Return value

array

1 call to JsonDecode::resolveContext()
JsonDecode::decode in vendor/symfony/serializer/Encoder/JsonDecode.php
Decodes data.

File

vendor/symfony/serializer/Encoder/JsonDecode.php, line 132

Class

JsonDecode
Decodes JSON data.

Namespace

Symfony\Component\Serializer\Encoder

Code

private function resolveContext(array $context) {
  $defaultOptions = array(
    'json_decode_associative' => $this->associative,
    'json_decode_recursion_depth' => $this->recursionDepth,
    'json_decode_options' => 0,
  );
  return array_merge($defaultOptions, $context);
}