Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (Reader $reader, Filesystem $filesystem, ConfigFilePool $configFilePool, DeploymentConfig $deploymentConfig, Writer\FormatterInterface $formatter=null, CommentParser $commentParser=null) | |
checkIfWritable () | |
saveConfig (array $data, $override=false, $pool=null, array $comments=[]) | |
Deployment configuration writer to files: env.php, config.php. @SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 20 of file Writer.php.
__construct | ( | Reader | $reader, |
Filesystem | $filesystem, | ||
ConfigFilePool | $configFilePool, | ||
DeploymentConfig | $deploymentConfig, | ||
Writer\FormatterInterface | $formatter = null , |
||
CommentParser | $commentParser = null |
||
) |
Reader | $reader | |
Filesystem | $filesystem | |
ConfigFilePool | $configFilePool | |
DeploymentConfig | $deploymentConfig | |
Writer\FormatterInterface | $formatter | |
CommentParser | $commentParser | The parser of comments from configuration files |
Definition at line 68 of file Writer.php.
checkIfWritable | ( | ) |
saveConfig | ( | array | $data, |
$override = false , |
|||
$pool = null , |
|||
array | $comments = [] |
||
) |
Saves config in specified file. $pool option is deprecated since version 2.2.0.
Usage:
array | $data | The data to be saved |
bool | $override | Whether values should be overridden |
string | $pool | The file pool (deprecated) |
array | $comments | The array of comments |
FileSystemException | @SuppressWarnings(PHPMD.UnusedFormalParameter) |
Definition at line 124 of file Writer.php.