Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.1] Document Controller#json() helper #6425

Closed
wouterj opened this issue Apr 2, 2016 · 1 comment
Closed

[3.1] Document Controller#json() helper #6425

wouterj opened this issue Apr 2, 2016 · 1 comment
Labels
actionable Clear and specific issues ready for anyone to take them. good first issue Ideal for your first contribution! (some Symfony experience may be required) hasPR A Pull Request has already been submitted for this issue.
Milestone

Comments

@wouterj
Copy link
Member

wouterj commented Apr 2, 2016

Thanks to @mcfedr, Symfony 3.1 comes with a sweet little Controller#json() helper to create a JsonResponse using the Symfony serializer (or just using the plain values). As we slowly start to show more and more how to use Symfony as an API server, I think it's worth documenting this method (especially in the Controller book chapter).

Refs symfony/symfony#17642

@wouterj wouterj added Missing Documentation good first issue Ideal for your first contribution! (some Symfony experience may be required) actionable Clear and specific issues ready for anyone to take them. labels Apr 2, 2016
@wouterj wouterj added this to the 3.1 milestone Apr 2, 2016
@wouterj wouterj added the hasPR A Pull Request has already been submitted for this issue. label May 20, 2016
@wouterj
Copy link
Member Author

wouterj commented May 21, 2016

Done by #6502

@wouterj wouterj closed this as completed May 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
actionable Clear and specific issues ready for anyone to take them. good first issue Ideal for your first contribution! (some Symfony experience may be required) hasPR A Pull Request has already been submitted for this issue.
Projects
None yet
Development

No branches or pull requests

1 participant