Permalink
Browse files

Fix graphviz:generate command

The method AbstractCommand::getSchema() take a string, not the Input object
  • Loading branch information...
GromNaN committed Nov 23, 2012
1 parent 14fadf5 commit 0d4adf1535577eea542a55c018736ad8f5d0108b
@@ -62,6 +62,12 @@ protected function getBuildProperties($file)
return $properties;
}
+ /**
+ * Find every schema files.
+ *
+ * @param string|array $directory Path to the input directory
+ * @return array List of schema files
+ */
protected function getSchemas($directory)
{
$finder = new Finder();
@@ -52,7 +52,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$manager = new GraphvizManager();
$manager->setGeneratorConfig($generatorConfig);
- $manager->setSchemas($this->getSchemas($input));
+ $manager->setSchemas($this->getSchemas($input->getOption('input-dir')));
$manager->setLoggerClosure(function($message) use ($input, $output) {
if ($input->getOption('verbose')) {
$output->writeln($message);

0 comments on commit 0d4adf1

Please sign in to comment.