I need to set some data to the env.php file from my controller.Is there any possible way to do so.
Thanks in advance
I need to set some data to the env.php file from my controller.Is there any possible way to do so. Thanks in advance |
|||||||||
|
\Magento\Framework\App\DeploymentConfig\Writer class is responsible for write deployment configuration. You can ask it in the constructor of your controller and then save data. Example code:
|
|||||||||||||||||||||
|