Flag of Ukraine
SymfonyCasts stands united with the people of Ukraine
Next Chapter

Challenge #1 of 1


Q: 

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?

userVoice