Log in
Model

ChangeDetector

Magento\Deploy\Model\DeploymentConfig\ChangeDetector

What it does

This class detects whether specific sections of Magento 2's deployment configuration files (like env.php) have been changed since they were last saved.

Developers use this to determine if configuration data has been modified, which is crucial for deployment processes, cache invalidation, and ensuring configuration integrity during upgrades or deployments.

Public Methods

  • hasChanges()