Response
参照symfony2的Response服务
public function testAction(Request $request, $id)
{
yield new \Response('这是文本');
}
public function testAction(Request $request, $id)
{
yield new \JsonResponse('这是文本');
}
public function testAction(Request $request, $id)
{
yield $this->redirect('http://xxxx');
}