Global Twig parameter transformation in Symfony 2.7 <p>I have added some config parameters in config.yml like:</p> <pre><code>twig: globals: brands: 'land-rover': 'Land Rover' </code></pre> <p>The problem that I have is that once I use this inside twig, land-rover becomes land_rover.</p> <pre><code>{% for slugKey, name in brands %} &lt;li&gt;&lt;a href="{{ path('getSearchResultsByBrand', {'slug': slugKey, 'edition': edition.edition}) }}"&gt;{{ name }}&lt;/a&gt;&lt;/li&gt; {% endfor %} </code></pre> <p>Why is this transformation happening automatically and how can I prevent it?</p>