Unlock this challenge:
Suppose we open up config/packages/twig.yaml and add a global variable:
config/packages/twig.yaml
twig: default_path: '%kernel.project_dir%/templates' globals: the_answer: 42
How could we read a list of all of the "globals" from inside our app?
From inside of Twig:
{% for name, value in config('globals') %} {% endfor %}
You cannot read this config value from inside of your app.
From inside of other config files:
some_other_config_key: '%twig.globals%'
From inside of a controller method:
$this->getConfig('twig', 'globals');