server->get('CONTENT_TYPE'), 'application/x-www-form-urlencoded') && in_array(strtoupper($request->server->get('REQUEST_METHOD', 'GET')), array('PUT', 'DELETE', 'PATCH')) ) { parse_str($request->getContent(), $data); if (magic_quotes()) $data = array_strip_slashes($data); $request->request = new ParameterBag($data); } return $request; } }