Fundamentos de Symfony 6: Servicios, Configuración y Entornos
Variables de entorno
  Start your All-Access Pass to unlock this challenge
Buy Access Login

Challenge 1 / 1

Suppose you're using a fictional OrderPizzaBundle, which requires you to put an API key to their service/API in a config file (where abcd1234 is our real API key for this example):

order_pizza:
    api_key: 'abcd1234'

A developer on your team recommends changing this to:

order_pizza:
    api_key: '%env(PIZZA_API_KEY)%'

Is this a good recommendation? Why or why not?

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.