processHelper = $processHelper; $this->phpBinary = $phpFinder->find(false) ?: 'php'; } protected function runPhpCommand(OutputInterface $output, array $command): void { $command = [$this->phpBinary, ...$command, '--no-interaction']; $this->processHelper->mustRun($output, $command); } protected function getLockConfig(): LockedCommandConfig { return new LockedCommandConfig($this->getName(), true); } }