/** * @inheritdoc */ protected function execute(InputInterface $input, OutputInterface $output) { $this->output = $output; if ($input->getOption('format')) { } $output->writeln("Dumping the contents of the tables..."); $options = $this->getApplication()->options; $this->index = new Index($options); // Prepare some more info to display. $items = $this->index->getItems(); #print_r($items); if ($items) { $this->dumpItems(); } else { $output->writeln("Database is currently empty."); } if ($input->getOption('locreport')) { $locReports = $this->index->getLocReports(); print_r($locReports); } }