title: Silex: put and post handled differently
body: <p>I'm using Silex to create a REST API. I created an update method which takes a resource id and request data and updates the matching resource. </p>
  
  <p>At first I tested it using the route:</p>
  
  <pre><code>$api-&gt;post('/websites/{id}', "websites.controller:update");
  </code></pre>
  
  <p>This worked fine and updated the resource as expected.</p>
  
  <p>I then changed the route to:</p>
  
  <pre><code>$api-&gt;put('/websites/{id}', "websites.controller:update");
  </code></pre>
  
  <p>The update method of the controller hasn't been changed at all, but the request is now failing. The request data seems to be empty, doing:</p>
  
  <pre><code>$request-&gt;request-&gt;get('key');
  </code></pre>
  
  <p>isn't returning anything although it was when using POST.</p>
  
  <p>Any ideas why the implementation may differ?</p>