Exemplo n.º 1
0
 /**
  * Execute command
  *
  * @param InputInterface  $input
  * @param OutputInterface $output
  *
  * @return void
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $version = new Version();
     $version->setRequest($this->request);
     $version = $version->getInfo();
     $this->out('Magento Information', [['type' => 'table', 'data' => [['Parameter', 'Value'], [['Edition', $version[0] ?: 'Unknown'], ['Version', $version[1] ?: 'Unknown']]]]]);
 }
Exemplo n.º 2
0
 /**
  * Check for Magento version
  *
  * @return void
  */
 public function checkMagentoinfo()
 {
     $version = new Version();
     $version->setRequest($this->request);
     $version = $version->getInfo();
     $rows = [['Edition', $version[0] ?: 'Unknown'], ['Version', $version[1] ?: 'Unknown']];
     $this->respond(['body' => $rows]);
 }
Exemplo n.º 3
0
 /**
  * Execute command
  *
  * @param InputInterface  $input
  * @param OutputInterface $output
  *
  * @return void
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $this->writeHeader('Magento Information');
     $version = new Version();
     $version->setRequest($this->request);
     $version = $version->getInfo($this->url);
     $rows = array(array('Edition', $version[0] ?: 'Unknown'), array('Version', $version[1] ?: 'Unknown'));
     $table = new Table($this->output);
     $table->setHeaders(array('Parameter', 'Value'))->setRows($rows)->render();
 }