Closed
Description
Symfony version(s) affected
6.4.15
Description
debug:dotenv
does not work with custom dotenv_path
. Note that Symfony itself scans and interprets all the files correctly, only this console command fails; it does not pick up any files or variables at all.
How to reproduce
- Set
extra.runtime.dotenv_path
to a custom path incomposer.json
. - Move all dotenv files into the custom path.
Possible Solution
No response
Additional Context
❯ bin/console debug:dotenv
Dotenv Variables & Files
========================
Scanned Files (in descending priority)
--------------------------------------
* ⨯ .env.local.php
* ⨯ .env.dev.local
* ⨯ .env.dev
* ⨯ .env.local
* ⨯ .env
Variables
---------
---------- -------
Variable Value
---------- -------
// Note that values might be different between web and CLI.