Fixed message displayed during installation process

This commit is contained in:
Alejandro Celaya 2018-09-14 19:17:30 +02:00
parent 9d7db96e4b
commit 9d9b61cf14
2 changed files with 7 additions and 3 deletions

View File

@ -46,12 +46,12 @@ final class Version20180913205455 extends AbstractMigration
$qb->setParameters([ $qb->setParameters([
'id' => $row['id'], 'id' => $row['id'],
'obfuscatedAddr' => $this->determineAddress((string) $addr, $row), 'obfuscatedAddr' => $this->determineAddress((string) $addr),
])->execute(); ])->execute();
} }
} }
private function determineAddress(string $addr, array $row): ?string private function determineAddress(string $addr): ?string
{ {
if ($addr === IpAddress::LOCALHOST) { if ($addr === IpAddress::LOCALHOST) {
return $addr; return $addr;

View File

@ -235,7 +235,11 @@ class InstallCommand extends Command
$this->phpBinary = $this->phpFinder->find(false) ?: 'php'; $this->phpBinary = $this->phpFinder->find(false) ?: 'php';
} }
$this->io->writeln('Running "' . sprintf('%s %s', $this->phpBinary, $command) . '"'); $this->io->write(
' <options=bold>[Running "' . sprintf('%s %s', $this->phpBinary, $command) . '"]</> ',
false,
OutputInterface::VERBOSITY_VERBOSE
);
$process = $this->processHelper->run($output, sprintf('%s %s', $this->phpBinary, $command)); $process = $this->processHelper->run($output, sprintf('%s %s', $this->phpBinary, $command));
if ($process->isSuccessful()) { if ($process->isSuccessful()) {
$this->io->writeln(' <info>Success!</info>'); $this->io->writeln(' <info>Success!</info>');