title: Symfony Controller return array
body: <p>I am trying to create a listener that configures the <code>Response</code> using annotations and sets the response content as the controller return.</p>
  
  <p>The Controller code:</p>
  
  <pre><code>use PmtVct\PhotoBookBundle\Annotations\ResponseType;
  use Symfony\Component\HttpFoundation\Request;
  
  /**
  * @ResponseType("JSON")
  */
  public function home(Request $request) {
      return ['asdf' =&gt; 123];
  }
  </code></pre>
  
  <p>But I receive the '<code>The controller must return a response</code>' error.</p>
  
  <p>There is a way to return an array on <code>Controller</code> instead a <code>Response</code>?</p>