From 4e861685d9ffbe4992ad67305ed902b3d60ad432 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 2 Feb 2023 00:40:42 +0000 Subject: [PATCH] chore: group PHP-related templates --- src/Console/Command/BuildConfigurationCommand.php | 8 ++++---- templates/{ => php}/docker-entrypoint-php.twig | 0 templates/{ => php}/phpcs.xml.twig | 0 templates/{ => php}/phpstan.neon.twig | 0 templates/{ => php}/phpunit.xml.twig | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename templates/{ => php}/docker-entrypoint-php.twig (100%) rename templates/{ => php}/phpcs.xml.twig (100%) rename templates/{ => php}/phpstan.neon.twig (100%) rename templates/{ => php}/phpunit.xml.twig (100%) diff --git a/src/Console/Command/BuildConfigurationCommand.php b/src/Console/Command/BuildConfigurationCommand.php index 5b24b93..149fcc5 100644 --- a/src/Console/Command/BuildConfigurationCommand.php +++ b/src/Console/Command/BuildConfigurationCommand.php @@ -57,12 +57,12 @@ final class BuildConfigurationCommand extends Command } if ($configurationData['language'] === self::LANGUAGE_PHP) { - $this->filesystem->dumpFile("{$outputDir}/phpcs.xml.dist", $this->twig->render('phpcs.xml.twig', $configurationData)); - $this->filesystem->dumpFile("{$outputDir}/phpstan.neon.dist", $this->twig->render('phpstan.neon.twig', $configurationData)); - $this->filesystem->dumpFile("{$outputDir}/phpunit.xml.dist", $this->twig->render('phpunit.xml.twig', $configurationData)); + $this->filesystem->dumpFile("{$outputDir}/phpcs.xml.dist", $this->twig->render('php/phpcs.xml.twig', $configurationData)); + $this->filesystem->dumpFile("{$outputDir}/phpstan.neon.dist", $this->twig->render('php/phpstan.neon.twig', $configurationData)); + $this->filesystem->dumpFile("{$outputDir}/phpunit.xml.dist", $this->twig->render('php/phpunit.xml.twig', $configurationData)); $this->filesystem->mkdir("{$outputDir}/tools/docker/images/php/root/usr/local/bin"); - $this->filesystem->dumpFile("{$outputDir}/tools/docker/images/php/root/usr/local/bin/docker-entrypoint-php", $this->twig->render('docker-entrypoint-php.twig', $configurationData)); + $this->filesystem->dumpFile("{$outputDir}/tools/docker/images/php/root/usr/local/bin/docker-entrypoint-php", $this->twig->render('php/docker-entrypoint-php.twig', $configurationData)); } if ($configurationData['web']['type'] === 'nginx') { diff --git a/templates/docker-entrypoint-php.twig b/templates/php/docker-entrypoint-php.twig similarity index 100% rename from templates/docker-entrypoint-php.twig rename to templates/php/docker-entrypoint-php.twig diff --git a/templates/phpcs.xml.twig b/templates/php/phpcs.xml.twig similarity index 100% rename from templates/phpcs.xml.twig rename to templates/php/phpcs.xml.twig diff --git a/templates/phpstan.neon.twig b/templates/php/phpstan.neon.twig similarity index 100% rename from templates/phpstan.neon.twig rename to templates/php/phpstan.neon.twig diff --git a/templates/phpunit.xml.twig b/templates/php/phpunit.xml.twig similarity index 100% rename from templates/phpunit.xml.twig rename to templates/php/phpunit.xml.twig