Symfony 6 Fundamentals: Services, Config & Environments
Configuring the Cache Service
Unlock this challenge
Login Register

Challenge 1 / 1

Suppose we open up config/packages/twig.yaml and add a global variable:

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?

Select your answer
Skip challenges and go to theNext Chapter

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.