Challenge 1 / 1
Suppose I have a simple controller that extends
Symfony\Bundle\FrameworkBundle\Controller\AbstractController
.
This time, in one of its actions, I want to return a JSON response
instead of HTML. What would the return statement look like?
Skip challenges and go to theNext Chapter