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 c696820
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
9 changes: 9 additions & 0 deletions build-configs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: build-configs
template: symfony-cli
parameters:
nix:
devshell:
packages:
- bashInteractive
- php82
- php82Packages.composer
9 changes: 0 additions & 9 deletions build.yaml

This file was deleted.

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 c696820

Please sign in to comment.