title: Symfony3 get parameters from URL
body: <p>I discovering symfony3, but im stuck at getting the parameters passed with a link from an action. 
  In my twig file, im redirecting the user to an action:</p>
  
  <pre><code>&lt;td&gt;&lt;a href="{{ path('esprit_park_affiche', {'id': voiture.id, 'serie': voiture.serie, 'dateMise': voiture.dateMiseCirculation, 'marque': voiture.marque}) }}" target="_blank"&gt;go to&lt;/a&gt;&lt;/td&gt;
  </code></pre>
  
  <p>And im my action, i'm trying to get the id with: </p>
  
  <pre><code>/**
   * @Route("/AfficheDetail", name="esprit_park_affiche")
   */
  public function afficheAction()
  {
      $id = $this-&gt;getParameter("id");
  
      return $this-&gt;render("@EspritPark/Voiture/affiche.html.twig", array("id" =&gt; $id));
  }
  </code></pre>
  
  <p>but each time i get: <code>The parameter "id" must be defined.</code>
  like the getParameter isnt returning anything.</p>
  
  <p>I even tried with: </p>
  
  <pre><code>$id = $this-&gt;get("request")-&gt;get("id");
  </code></pre>
  
  <p>but i get: <code>You have requested a non-existent service "request". Did you mean one of these: "monolog.logger.request", "request_stack", "router.request_context", "data_collector.request"?</code></p>