title: Add request parameter to request
body: <p>I need to put a flag in an <code>kernel.event_listener</code> at stage <code>kernel.controller</code> in order to do something in an <code>kernel.response</code>-listener. </p>
  
  <p>I thought about adding a parameter to the <code>$request</code> object, however have not found any method or this:</p>
  
  <p><a href="http://api.symfony.com/2.0/Symfony/Component/HttpFoundation/Request.html" rel="noreferrer">http://api.symfony.com/2.0/Symfony/Component/HttpFoundation/Request.html</a></p>
  
  <p>What is the best practice to pass some informatino from an <code>kernel.controller</code>-listener to an <code>kernel.response</code>-listener? </p>
  
  <p>Use-case: </p>
  
  <ul>
  <li>We want to set a cookie based on a validation of a specific request attribute (must be in <code>kernel.controller</code>-stage, since based on the result of the validation, the view may behave different).</li>
  <li>The cookie can only be set in the <code>kernel.response</code>-listener, since it has the <code>Response</code>-instance.</li>
  </ul>