Skip to content

Commit

Permalink
Use defined PHP binary for calls to bin/magento (netz98#1149)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuench committed Mar 15, 2023
1 parent 5fb8f9a commit 9565741
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/N98/Magento/Command/MagentoCoreProxyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
);

Expand Down

0 comments on commit 9565741

Please sign in to comment.