Log in
Model

Environment

Magento\Config\Model\Placeholder\Environment

What it does

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

It converts configuration paths (like 'web/secure/base_url') into environment variable format (like 'CONFIG__DEFAULT__WEB__SECURE__BASE_URL') and vice versa, allowing developers to externalize configuration settings using environment variables instead of storing them in the database.

Public Methods

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