From 9c1071af4f7d0ba45afabe3cb871eae13225ac34 Mon Sep 17 00:00:00 2001 From: Larry Garfield Date: Sat, 27 Jul 2024 13:39:20 -0500 Subject: [PATCH] Register php.ini overrides with CLI, too Currently, the php-ini-overrides.ini file only applies to fpm. It doesn't apply to the CLI. It's quite rare to not want settings in both cases, especially if you're doing something like setting up XDebug. This PR links the file for both modes. --- src/PHPDocker/Generator/Files/DockerCompose.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PHPDocker/Generator/Files/DockerCompose.php b/src/PHPDocker/Generator/Files/DockerCompose.php index 31d8cb48..3419054e 100644 --- a/src/PHPDocker/Generator/Files/DockerCompose.php +++ b/src/PHPDocker/Generator/Files/DockerCompose.php @@ -213,6 +213,7 @@ private function addPhpFpm(): self 'volumes' => [ $this->defaultVolume, sprintf('./phpdocker/%s:/etc/php/%s/fpm/conf.d/99-overrides.ini', $this->phpIniLocation, $shortVersion), + sprintf('./phpdocker/%s:/etc/php/%s/cli/conf.d/99-overrides.ini', $this->phpIniLocation, $shortVersion), ], ];