13 use Psr\Log\LoggerInterface;
38 LoggerInterface $logger
40 $this->driver = $driver;
60 $escapedCommand =
$response->getEscapedCommand();
63 $logEntry = $escapedCommand . PHP_EOL .
$output;
65 $this->logger->error($logEntry);
66 $commandError = new \Exception(
$output, $exitCode);
68 new Phrase(
"Command returned non-zero exit code:\n`%1`", [$command]),
72 $this->logger->info($logEntry);
__construct(Driver $driver, LoggerInterface $logger)
execute($command, array $arguments=[])