title: Use request data as hidden input field
body: <p>I want to use data from request header (http headers) as hidden fields in my form.<br>
  The easiest way is to add a new hidden field via the form builder and set the data.</p>
  
  <p>But I want to use it for more than one form so an own type would be good.<br>
  Setting the data via the parameters array or passing them via constructor should fit this requirement.</p>
  
  <p>This would be "a lot of" copy/paste-work. I don't want this, I search for a nice way. A little bit closer to the framework.<br>
  I have read that I can use <strong>closures</strong> for the options with the <em>OptionsResolverInterface</em>.</p>
  
  <p>Is there any possibility to use them for this requirement?<br>
  Or is the only way to pass the <em>Request</em> object via parameters array/constructor into the type?</p>
  
  <p>Perhaps there is a possibility to use an event listener or anything like that.</p>
  
  <p>Thanks in advance for any hints.</p>