Skip to content

Commit 3f9a3a8

Browse files
committed
Merge pull request #1997 from Cangit/patch-1
Update components/http_foundation/introduction.rst
2 parents f9f0ed1 + e657fe2 commit 3f9a3a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/http_foundation/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ class, which can make this even easier::
431431
use Symfony\Component\HttpFoundation\JsonResponse;
432432

433433
$response = new JsonResponse();
434-
$response->setContent(array(
434+
$response->setData(array(
435435
'data' => 123
436436
));
437437

0 commit comments

Comments
 (0)