Symfony 6 Fundamentals: Services, Config & Environments
Environments
  Start your All-Access Pass to unlock this challenge
Buy Access Login

Challenge 2 / 2

What is the difference between the following two blocks of YAML?

Block A:

# config/packages/twig.yaml
twig:
    globals:
        answer_to_everything: 42

when@dev:
    twig:
        globals:
            answer_to_everything: 21

Block B:

# config/packages/twig.yaml
when@dev:
    twig:
        globals:
            answer_to_everything: 21

twig:
    globals:
        answer_to_everything: 42
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.