title: get the current user id in twig symfony 3.4
body: <p>i am using FosUserBundle in Symfony  3.4 i want to get the current user id and pass it in URL to another page from twig , this is my  code : </p>
  
  <pre><code>&lt;a href="{{ absolute_url(asset('')) }}app_dev.php/ajout/{{ event.id }}/{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %} {{  app.user.id|number_format  }}
  {% endif %}"&gt;Réserver&lt;/a&gt;
  </code></pre>
  
  <p>but the problem is i get the url like this </p>
  
  <pre><code>http://localhost/techeventsweb/web/app_dev.php/ajout/1/%202
  </code></pre>
  
  <p>the id is '%202' while it's supposed to be an integer '2'</p>