hmm... how about one line? 
```
return new Response(json_encode($this->getArticle($request, $this->getDoctrine()->getManager()))); 
```