refactor: add isDocker
and isFlake
to the
...Configuration DTO
This commit is contained in:
parent
ebc4d899b2
commit
baaf3bf16b
6 changed files with 18 additions and 30 deletions
|
@ -10,6 +10,11 @@ use Symfony\Component\Yaml\Yaml;
|
|||
final class CreateFinalConfigurationData
|
||||
{
|
||||
public function handle(string $configFile, \Closure $next) {
|
||||
// Perform some initial checks before the defaults are merged.
|
||||
$configurationData = Yaml::parseFile(filename: $configFile);
|
||||
$configurationData['isDocker'] = isset($configurationData['dockerfile']);
|
||||
$configurationData['isFlake'] = isset($configurationData['flake']);
|
||||
|
||||
$configurationData = array_replace_recursive(
|
||||
Yaml::parseFile(filename: __DIR__ . '/../../resources/build.defaults.yaml'),
|
||||
Yaml::parseFile(filename: $configFile),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue