[command] Fixed output in graphviz command

This commit is contained in:
William DURAND 2011-08-30 11:54:25 +02:00
parent 7b2359d3d3
commit bcdfcc9b85

View file

@ -38,12 +38,14 @@ EOT
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
$this->writeSection($output, '[Propel] You are running the command: propel:graphviz');
$dest = $this->getApplication()->getKernel()->getRootDir() . '/propel/graph/';
$this->callPhing('graphviz', array(
'propel.graph.dir' => $dest,
));
$output->writeln(sprintf('Graphviz file is in "<info>%s</info>".', $dest));
$output->writeln(sprintf('Graphviz file is in <info>%s</info>.', $dest));
}
}