protected function renderAsMagerunScript(OutputInterface $output, $table) { foreach ($table as $row) { $value = str_replace(array("\n", "\r"), array('\\n', '\\r'), $row['value']); $line = sprintf('config:set --scope-id=%s --scope=%s -- %s %s', $row['scope_id'], $row['scope'], escapeshellarg($row['path']), escapeshellarg($value)); $output->writeln($line); } }