From 95657417b7b550bb9d178ae2cf91f0d748db64b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20M=C3=BCnch?= Date: Wed, 15 Mar 2023 12:03:13 +0100 Subject: [PATCH] Use defined PHP binary for calls to bin/magento (#1149) --- src/N98/Magento/Command/MagentoCoreProxyCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/N98/Magento/Command/MagentoCoreProxyCommand.php b/src/N98/Magento/Command/MagentoCoreProxyCommand.php index cc6470e8f..4a3b73d79 100644 --- a/src/N98/Magento/Command/MagentoCoreProxyCommand.php +++ b/src/N98/Magento/Command/MagentoCoreProxyCommand.php @@ -10,6 +10,7 @@ namespace N98\Magento\Command; use N98\Magento\Application\Console\Input\FilteredStringInput; +use N98\Util\OperatingSystem; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputDefinition; use Symfony\Component\Console\Input\InputInterface; @@ -57,7 +58,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $magentoCoreCommandInput = new FilteredStringInput($input->__toString()); $process = Process::fromShellCommandline( - $this->magentoRootDir . '/bin/magento ' . $magentoCoreCommandInput->__toString(), + OperatingSystem::getPhpBinary() . ' ' . $this->magentoRootDir . '/bin/magento ' . $magentoCoreCommandInput->__toString(), $this->magentoRootDir );