Definition at line 15 of file ConfigModel.php.
◆ __construct()
Constructor
- Parameters
-
Definition at line 47 of file ConfigModel.php.
55 $this->filePermissions = $filePermissions;
◆ process()
Process input options
- Parameters
-
- Returns
- void
- Exceptions
-
Definition at line 91 of file ConfigModel.php.
93 $this->checkInstallationFilePermissions();
95 $options = $this->collector->collectOptionsLists();
101 $fileConfigStorage = [];
103 throw new \Exception(
106 .
'ConfigOption::createConfig should return an array of ConfigData instances' 110 if (isset($fileConfigStorage[
$config->getFileKey()])) {
111 $fileConfigStorage[
$config->getFileKey()] = array_replace_recursive(
112 $fileConfigStorage[
$config->getFileKey()],
118 $this->writer->saveConfig($fileConfigStorage,
$config->isOverrideWhenSave());
◆ validate()
validate |
( |
array |
$inputOptions | ) |
|
Validates Input Options
- Parameters
-
- Returns
- array
Definition at line 129 of file ConfigModel.php.
134 $options = $this->getAvailableOptions();
137 if ($inputOptions[
$option->getName()] !==
null) {
140 }
catch (\InvalidArgumentException $e) {
146 $options = $this->collector->collectOptionsLists();
◆ $collector
◆ $deploymentConfig
◆ $writer
The documentation for this class was generated from the following file: