title: Is a global variable for a Twig template available inside a Symfony2 controller?
body: <p>A <strong>global variable</strong> for a <em>Twig template</em> can be defined inside the <strong>config.yml</strong> of a <em>Symfony2</em> application as in the following:</p>
  
  <pre><code>twig:                 
      globals:
        var_name: var_value
  </code></pre>
  
  <p>Hence, in each Twig template the variable can be used as follows:</p>
  
  <pre><code>{{var_name}}
  </code></pre>
  
  <p>that will display </p>
  
  <pre><code>var_value
  </code></pre>
  
  <p><em>Do you know such a way to get the value of a global variable just inside a Symfony2 controller?</em>          </p>