Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #320 from GromNaN/fix-graphviz-command

Fix graphviz:generate command
  • Loading branch information...
commit e5d2164b0cf51e4ac3333bd65ce627bed12d0769 2 parents 14fadf5 + 0d4adf1
William Durand willdurand authored
6 src/Propel/Generator/Command/AbstractCommand.php
View
@@ -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();
2  src/Propel/Generator/Command/GraphvizGenerateCommand.php
View
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.