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