Generated filters can be expanded

This commit is contained in:
Oliver Davies 2019-04-18 23:48:04 +01:00
parent b123dcf079
commit 4c00155956
4 changed files with 34 additions and 9 deletions

View file

@ -40,7 +40,7 @@ class GenerateCommand extends Command
try {
// TODO: Inject this.
new Builder($this->filters($input), $outputFile = $this->outputFile($input));
new Builder($this->filters($input), $outputFile = $this->outputFile($input), true, $input->getOption('expanded'));
$io->success(sprintf('%s file generated.', $outputFile));
} catch (IOException $e) {
@ -61,6 +61,6 @@ class GenerateCommand extends Command
throw new \RuntimeException('No input file found.');
}
return require_once $inputFile;
return require $inputFile;
}
}