protected function renderAsTable(OutputInterface $output, $table, $format) { $formattedTable = array(); foreach ($table as $row) { $formattedTable[] = array($row['path'], $row['scope'], $row['scope_id'], $row['value']); } $this->getHelper('table')->setHeaders(array('Path', 'Scope', 'Scope-ID', 'Value'))->setRows($formattedTable)->renderByFormat($output, $formattedTable, $format); }