title: Vendor MIME types and API versioning in Symfony2 with FOSRestBundle and JMSSerializerBundle
body: <p>I want to handle the diferents versions of a resource with the request header 'Accept'</p>
  
  <pre><code>===&gt;
  GET /customer/123 HTTP/1.1
  Accept: application/vnd.company.myapp.customer-v3+json
  
  &lt;===
  HTTP/1.1 200 OK
  Content-Type: application/vnd.company.myapp-v3+json
  
  {"customer":
    {"name":"Neil Armstrong"}
  }
  </code></pre>
  
  <p>I want to read the Accept header, extract the version and initialize the serializer with this version!</p>
  
  <p>This is possible with FOSRestBundle?</p>
  
  <p>I know I can listen kernel.request, inspect the 'Accept' header and extract the requested version from the MIME type but I don´t know how to set the serializer with this value...</p>
  
  <p>I also read FOSRestBundle doc and I know that you can add new mime types in config:</p>
  
  <pre><code>view.mime_types: {'json': ['application/vnd.company.myapp.customer-v1+xml', 'application/vnd.company.myapp.customer-v2+xml']}
  </code></pre>
  
  <p>I need to add here all the possible mime types (with different versions)?</p>
  
  <p>Any help will be appreciated!</p>