title: How does symfony2 inject the profiler?
body: <p>When I use the dev AppKernel of my app symfony shows a profiler bar at the bottom of the site.</p>
  
  <p>How does symphony does this? Does it transparently inject something into my templates? I ask this because when I output raw text with "return new Response" from a controller action no profiler code is appended.</p>