diff --git a/src/Foundation/Console/InfoCommand.php b/src/Foundation/Console/InfoCommand.php index 3ecc85b6e5..520cbc1d06 100644 --- a/src/Foundation/Console/InfoCommand.php +++ b/src/Foundation/Console/InfoCommand.php @@ -57,12 +57,12 @@ protected function configure() protected function fire() { $coreVersion = $this->findPackageVersion(__DIR__.'/../../../', Application::VERSION); - $this->info("Flarum core $coreVersion"); + $this->output->writeln("Flarum core $coreVersion"); - $this->info('PHP '.PHP_VERSION); + $this->output->writeln('PHP version: '.PHP_VERSION); $phpExtensions = implode(', ', get_loaded_extensions()); - $this->info("Loaded extensions: $phpExtensions"); + $this->output->writeln("Loaded extensions: $phpExtensions"); $table = new Table($this->output); $table->setHeaders([ @@ -76,8 +76,7 @@ protected function fire() ] ])->setStyle( (new TableStyle()) - ->setCellRowFormat('%s') - ->setBorderFormat('%s') + ->setCellHeaderFormat('%s') ); foreach ($this->extensions->getEnabledExtensions() as $extension) { @@ -95,9 +94,9 @@ protected function fire() $table->render(); - $this->info('Base URL: '.$this->config['url']); - $this->info('Installation path: '.getcwd()); - $this->info('Debug mode '.($this->config['debug'] ? 'ON' : 'off')); + $this->output->writeln('Base URL: '.$this->config['url']); + $this->output->writeln('Installation path: '.getcwd()); + $this->output->writeln('Debug mode: '.($this->config['debug'] ? 'ON' : 'off')); if ($this->config['debug']) { $this->error(