Question from the Symfony 5 test

Override Environment (DotEnv) Files Directory in Symfony

Hard

In a Symfony 5 application, how can you customize the path of the .env file?

Author: Vincent CotroStatus: Published(Update)Question passed 434 times
Edit
1
Community Evaluations
developer avatar
djo
11/02/2024
using SymfonyRuntime ?
developer avatar
Auteur anonyme
13/02/2024
What do you mean ?
developer avatar
djo
14/02/2024
i mean , we can override the env path by using the SymfonyRuntime https://symfony.com/doc/current/components/runtime.html#using-options otherwise I don't see any other possible solutions