From 1c7f1f2e2be1d51f6c899b7aa4ba0efd5c536a91 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 5 Jun 2023 22:01:10 +0100 Subject: [PATCH] feat(php): make ini values configurable Refs: OD-28 --- src/Action/CreateListOfFilesToGenerate.php | 5 +++++ templates/php/php.ini.twig | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 templates/php/php.ini.twig diff --git a/src/Action/CreateListOfFilesToGenerate.php b/src/Action/CreateListOfFilesToGenerate.php index 456e7d4..7f4cb8a 100644 --- a/src/Action/CreateListOfFilesToGenerate.php +++ b/src/Action/CreateListOfFilesToGenerate.php @@ -53,6 +53,11 @@ final class CreateListOfFilesToGenerate name: 'docker-entrypoint-php', path: 'tools/docker/images/php/root/usr/local/bin', ); + $filesToGenerate[] = new TemplateFile( + data: 'php/php.ini', + name: 'php.ini', + path: 'tools/docker/images/php/root/usr/local/etc/php', + ); if (Arr::has(array: $configurationData, keys: 'php.phpstan')) { $filesToGenerate[] = new TemplateFile(data: 'php/phpstan.neon', name: 'phpstan.neon.dist'); diff --git a/templates/php/php.ini.twig b/templates/php/php.ini.twig new file mode 100644 index 0000000..fa28093 --- /dev/null +++ b/templates/php/php.ini.twig @@ -0,0 +1,4 @@ +# {{ managedText }} + +max_vars_input = 1000 +memory_limit = {{ php.ini.memory_limit | default('128M') }}