title: Symfony 3(FOSrestBundle) + Angular 1 POST request is empty
body: <p>Here is my <strong>Angular service</strong> :</p>
  
  <pre><code>restFactory.getCalcPrice = function (data) {
      return $http({
          url:"/api/calc",
          method:"POST",
          data:{"data": data},
          headers: {'Content-Type': 'application/x-www-form-urlencoded'}
      })
  };
  </code></pre>
  
  <p><strong>FOSRestBundle config</strong>:</p>
  
  <pre><code>fos_rest:
  param_fetcher_listener: true
  body_listener: true
  body_converter:
      enabled: true
  routing_loader:
      default_format: json
  view:
      view_response_listener: 'force'
      mime_types:
          json: ['application/json', 'application/json;version=1.0', 'application/json;version=1.1']
  format_listener:
      rules:
          - { path: ^/api, priorities: [ json ], fallback_format: json, prefer_extension: true }
          - { path: ^/, priorities: [ 'html', '*/*'], fallback_format: ~, prefer_extension: true }
  </code></pre>
  
  <p>And Symfony 3 <strong>contoller</strong>:</p>
  
  <pre><code>    /**
     * @Post("/calc")
     * @View()
     * @return array
     */
    public function getCalcPrice(Request $request)
    {
      $req = $request-&gt;request-&gt;all();
      $data = $req['data'];
      $data = array(
        "data" =&gt; $data // in Angular recieving null
      );
  
      return $data;
    }
  </code></pre>
  
  <p>So the problem is when I <strong>posting</strong> some data from Angular I can't get it in Symfony. <strong>GET request</strong> working fine. Any suggestions? :)</p>
  
  <p>This is screenshot from Chrome debug:
  <a href="https://i.stack.imgur.com/Ey0Xi.png" rel="nofollow"><img src="https://i.stack.imgur.com/Ey0Xi.png" alt="enter image description here"></a></p>