title: Inject twig variable symfony2
body: <p>I'm using symfony and I want to inject a variable taken from database. Until now, I inject the variables as below:</p>
  
  <pre><code>twig:
     globals:
         key: value
  </code></pre>
  
  <p>I think to create a listener and inject it by the listener, could be right?</p>