title: Missing Closure in Slim
body: <p>I am trying the Slim framework as the basis for a REST api and have run into the following problem when I try to access it:</p>
  
  <pre><code>Missing argument 2 for {closure}()
  </code></pre>
  
  <p>I have googled it and none of the suggestions seemed to apply. This is the entire application:</p>
  
  <pre><code>require("vendor/autoload.php");
  use Slim\Slim as Slim;
  \Slim\Slim::registerAutoloader();
  include("validate.php");
  
  $app= new Slim();
  //
  //      Route: GET /test/ID
  //
  $app-&gt;get("/test/:id",function($request,$response,$id) {  &lt;--- ERROR LINE
                  $status=accessAllowed("id",$request,$response);
                  log_info("Status: $status\n");
          });
  $app-&gt;run();
  </code></pre>
  
  <p>I'm just learning Slim and I'm assuming this is just a newbie problem. Any guidance would be appreciated.</p>
  
  <p>I'm using version 3 of Slim (newest).</p>