Flight PHP PUT method is not getting data
<p>I hope you're good.</p>

<p>I'm working on an inventory system and I'm using FlightPHP to create the REST because is very light and i used to work in another projects before. </p>

<p>But right now, I have a trouble with that framework and I tried to find a possible solution for that issue but I couldn't. </p>

<p>First of all, I'll paste part of the code that I'm using</p>

<pre><code>Flight::route('PUT /proveedores/', function() {

    $put_request = Flight::request();

    $Proveedor = new Proveedor(
        $put_request-&gt;data-&gt;RazonSocial,
        $put_request-&gt;data-&gt;RFC,
        $put_request-&gt;data-&gt;Domicilio,
        $put_request-&gt;data-&gt;Numero,
        $put_request-&gt;data-&gt;Colonia,
        $put_request-&gt;data-&gt;Municipio, 
        $put_request-&gt;data-&gt;Estado,
        $put_request-&gt;data-&gt;Pais,
        $put_request-&gt;data-&gt;CodigoPostal,
        $put_request-&gt;data-&gt;CondicionPago,
        $put_request-&gt;data-&gt;Plazo,
        $put_request-&gt;data-&gt;CorreoElectronico,
        $put_request-&gt;data-&gt;Contrarrecibos,
        $put_request-&gt;data-&gt;Observaciones
    );

    $Proveedor-&gt;setID($put_request-&gt;data-&gt;IDProveedor);

    $Updated = ProveedoresController::updateProveedor($Proveedor);

    if($Updated) {
        Flight::halt(200);
    } else {
        Flight::halt(500);
  }
});
</code></pre>

<p>As you can see, the code is easy to understand. I have a PUT method working within a /proveedores/ path and after that, I'm getting the request to read each field of the HTTP packet (I don't want to specify the code below because I tested it and the issue is not in that section).</p>

<p>The trouble is when I'm getting the data from the Flight::request method, I'm getting NULL values. I tested it with POSTMAN and with my application and I still having that issue. I don't know what is happening, because with the another methods I'm using (such as GET, POST and DELETE) are working properly.</p>

<p>P.D. Sorry if my english is bad, I hope you'll understand my situation and help me with that trouble</p>