From ed36ac2e28c015bbf04e65066b96d2e201627856 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 26 Jan 2024 14:55:37 +0000 Subject: [PATCH] Create flake.nix files for Symfony projects --- src/Action/CreateListOfFilesToGenerate.php | 8 +++++++- templates/php/{sculpin => common}/flake.nix.twig | 0 2 files changed, 7 insertions(+), 1 deletion(-) rename templates/php/{sculpin => common}/flake.nix.twig (100%) diff --git a/src/Action/CreateListOfFilesToGenerate.php b/src/Action/CreateListOfFilesToGenerate.php index e56fab0..2b04dbc 100644 --- a/src/Action/CreateListOfFilesToGenerate.php +++ b/src/Action/CreateListOfFilesToGenerate.php @@ -32,7 +32,13 @@ final class CreateListOfFilesToGenerate ]); if ($configDto->isFlake) { - $filesToGenerate->push(new TemplateFile(data: 'php/sculpin/flake.nix', name: 'flake.nix')); + $filesToGenerate->push(new TemplateFile(data: 'php/common/flake.nix', name: 'flake.nix')); + } + break; + + case (strtolower(ProjectType::Symfony->name)): + if ($configDto->isFlake) { + $filesToGenerate->push(new TemplateFile(data: 'php/common/flake.nix', name: 'flake.nix')); } break; diff --git a/templates/php/sculpin/flake.nix.twig b/templates/php/common/flake.nix.twig similarity index 100% rename from templates/php/sculpin/flake.nix.twig rename to templates/php/common/flake.nix.twig