1 | <?php |
||
5 | class ConfigurationFileWriter |
||
6 | { |
||
7 | /** |
||
8 | * @param Configuration $configuration |
||
9 | * @param string $path File path to write the configuration file to. |
||
10 | * @param bool $skipDefaults If true only settings that do not match the default are written. |
||
11 | */ |
||
12 | public function writeConfigurationFile(Configuration $configuration, string $path, bool $skipDefaults = true): void |
||
19 | |||
20 | /** |
||
21 | * Serializes the given configuration to the content of an equivalent configuration file. |
||
22 | * |
||
23 | * @param Configuration $configuration |
||
24 | * @param bool $skipDefaults If true only settings that do not match the default are written. |
||
25 | * @return string |
||
26 | */ |
||
27 | public function buildConfigurationFile(Configuration $configuration, bool $skipDefaults = true): string |
||
48 | |||
49 | protected function getDefaultConfiguration(Configuration $configuration): Configuration |
||
55 | |||
56 | protected function getDefaultVaultConfiguration(VaultConfiguration $vaultConfiguration): VaultConfiguration |
||
62 | } |
||
63 |