private function JsonEncode::resolveContext in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Encoder/JsonEncode.php \Symfony\Component\Serializer\Encoder\JsonEncode::resolveContext()
Merge default json encode options with context.
Parameters
array $context:
Return value
array
1 call to JsonEncode::resolveContext()
- JsonEncode::encode in vendor/
symfony/ serializer/ Encoder/ JsonEncode.php - Encodes PHP data to a JSON string.
File
- vendor/
symfony/ serializer/ Encoder/ JsonEncode.php, line 80
Class
- JsonEncode
- Encodes JSON data.
Namespace
Symfony\Component\Serializer\EncoderCode
private function resolveContext(array $context = array()) {
return array_merge(array(
'json_encode_options' => $this->options,
), $context);
}