Is there any way to watch changes in env.php
file? I would like to log all changes into some file.
1 Answer
I have found this class Magento\Framework\App\DeploymentConfig\Writer
. It is responsible to write configurations to env.php
file. It has a saveConfig()
method, and writing a before plugin for this method will do the job.
.gitignore
, somehow it is changed. We are suspecting that somehow some extension is changing this file. Adding it into GIT will only show me what is added, or removed. I would like to see time of change.