feat(php): make ini values configurable

Refs: OD-28
This commit is contained in:
Oliver Davies 2023-06-05 22:01:10 +01:00
parent b121f2fb77
commit 1c7f1f2e2b
2 changed files with 9 additions and 0 deletions

View file

@ -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');

View file

@ -0,0 +1,4 @@
# {{ managedText }}
max_vars_input = 1000
memory_limit = {{ php.ini.memory_limit | default('128M') }}