From 5c976b13fbdb8e9691aee8bed605f2f779d1122f Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 31 Jul 2024 18:21:30 +0100 Subject: [PATCH] Alias `symfony-cli` to `symfony` --- src/Action/CreateFinalConfigurationData.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Action/CreateFinalConfigurationData.php b/src/Action/CreateFinalConfigurationData.php index d105df5..074c8ac 100644 --- a/src/Action/CreateFinalConfigurationData.php +++ b/src/Action/CreateFinalConfigurationData.php @@ -43,6 +43,12 @@ final class CreateFinalConfigurationData $configurationData['isDocker'] = isset($configurationData['dockerfile']); $configurationData['isFlake'] = isset($configurationData['flake']); + // Alias `symfony-cli` to `symfony`. In the future, this allows for + // different configurations for CLI-based and web-based applications. + if ($configurationData['type'] === 'symfony-cli') { + $configurationData['type'] = 'symfony'; + } + if (isset($configurationData['docker-compose'])) { $configurationData['dockerCompose'] = $configurationData['docker-compose']; $configurationData['docker-compose'] = null;