Log in
Model

Environment

Magento\Config\Model\Placeholder\Environment

What it does

This class manages environment variable placeholders for Magento 2 configuration values.

Developers use it to convert configuration paths (like 'general/store_information/name') into environment variable names (like 'CONFIG__DEFAULT__GENERAL__STORE_INFORMATION__NAME') and vice versa.

This is particularly useful when storing sensitive configuration values as environment variables instead of in the database.

Public Methods

  • generate()
  • restore()
  • isApplicable()