M
M
MaMkO2021-03-09 14:38:24
symfony
MaMkO, 2021-03-09 14:38:24

How to set and use a variable in Symfony configuration?

Hello, I want to integrate a payment system into my website. Accordingly, the question arose - where can I create a variable and then use it from any controller, in my case this is a secret API code.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2021-03-09
@MaMkO

File .env. Details in the documentation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question