public function JsonResponse::setEncodingOptions in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-foundation/JsonResponse.php \Symfony\Component\HttpFoundation\JsonResponse::setEncodingOptions()
Sets options used while encoding data to JSON.
Parameters
int $encodingOptions:
Return value
File
- vendor/
symfony/ http-foundation/ JsonResponse.php, line 170
Class
- JsonResponse
- Response represents an HTTP response in JSON format.
Namespace
Symfony\Component\HttpFoundationCode
public function setEncodingOptions($encodingOptions) {
$this->encodingOptions = (int) $encodingOptions;
return $this
->setData(json_decode($this->data));
}