1 | <?php |
||
7 | class ConfigurationFileWriter |
||
8 | { |
||
9 | /** |
||
10 | * @param Configuration $configuration |
||
11 | * @param string $path File path to write the configuration file to. |
||
12 | * @param bool $skipDefaults If true only settings that do not match the default are written. |
||
13 | */ |
||
14 | public function writeConfigurationFile(Configuration $configuration, string $path, bool $skipDefaults = true): void |
||
21 | |||
22 | /** |
||
23 | * Serializes the given configuration to the content of an equivalent configuration file. |
||
24 | * |
||
25 | * @param Configuration $configuration |
||
26 | * @param bool $skipDefaults If true only settings that do not match the default are written. |
||
27 | * @return string |
||
28 | */ |
||
29 | public function buildConfigurationFile(Configuration $configuration, bool $skipDefaults = true): string |
||
50 | |||
51 | protected function getDefaultConfiguration(Configuration $configuration): Configuration |
||
57 | |||
58 | protected function getDefaultVaultConfiguration(VaultConfiguration $vaultConfiguration): VaultConfiguration |
||
64 | } |
||
65 |