Skip to content

Commit

Permalink
Alias symfony-cli to symfony
Browse files Browse the repository at this point in the history
  • Loading branch information
opdavies committed Jul 31, 2024
1 parent 6a72429 commit 5c976b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Action/CreateFinalConfigurationData.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ public function handle(string $configFile, \Closure $next)
$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;
Expand Down

0 comments on commit 5c976b1

Please sign in to comment.