Thanks to visit codestin.com
Credit goes to github.com

Skip to content

debug:dotenv does not work with custom dotenv_path. #58987

Closed
@Bilge

Description

@Bilge

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

  1. Set extra.runtime.dotenv_path to a custom path in composer.json.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions