Skip to content

Conversation

@Matthiasklaasse
Copy link

@Matthiasklaasse Matthiasklaasse commented Nov 2, 2025

  • ✨ Added JsonEnvParser so JsonFile can resolve ${VAR} placeholders from the project .env.
  • 🔄 Preserved backward compatibility: missing env values trigger a warning but return the literal placeholder.
  • 🌍 Every .json file (processed by the JsonFile class) is affected and can now take enviroment variables (even 3th party composer.json's).

@private-packagist
Copy link

private-packagist bot commented Nov 2, 2025

composer.lock

Package changes

Package Operation From To About
symfony/dotenv add - v5.4.48 view code - License: MIT License

Settings · Docs · Powered by Private Packagist

@private-packagist
Copy link

The composer.lock diff comment has been updated to reflect new changes in this PR.

@Matthiasklaasse
Copy link
Author

The original ticket asked for environment variables only in auth.json but implementing that would be more work then implementing it for all .json files what do you (moderators) think of this?

@Matthiasklaasse Matthiasklaasse changed the title Added request from #11746: Allow environment variables to be used in auth.json Featture/#11746: Allow environment variables to be used in json files Nov 3, 2025
@Matthiasklaasse Matthiasklaasse changed the title Featture/#11746: Allow environment variables to be used in json files Featture: #11746: Allow environment variables to be used in json files Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant