[command] Fixed output for data-dump

This commit is contained in:
William DURAND 2011-09-06 15:31:38 +02:00
parent 9eff990e4b
commit 15a6c91913

View file

@ -68,7 +68,7 @@ EOT
$dumper = new YamlDataDumper($this->getApplication()->getKernel()->getRootDir());
try {
$dumper->dump($filename, $name);
$file = $dumper->dump($filename, $name);
} catch (\Exception $e) {
$this->writeSection($output, array(
'[Propel] Exception',
@ -77,11 +77,7 @@ EOT
return false;
}
$this->writeSection(
$output,
sprintf('>> <info>File+</info> %s', $filename),
'fg=white;bg=black'
);
$output->writeln(sprintf('>> <info>File+</info> %s', $file));
return true;
}