*/ class GraphvizGenerateCommand extends AbstractCommand { /** * @see Command */ protected function configure() { $this ->setDescription('Generates Graphviz file for your project') ->setHelp(<<propel:graphviz generates Graphviz file for your project. php app/console propel:graphviz EOT ) ->setName('propel:graphviz:generate') ; } /** * @see Command * * @throws \InvalidArgumentException When the target directory does not exist */ protected function execute(InputInterface $input, OutputInterface $output) { $dest = $this->getApplication()->getKernel()->getRootDir() . '/propel/graph/'; $this->callPhing('graphviz', array( 'propel.graph.dir' => $dest, )); $this->writeNewDirectory($output, $dest); } }