We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51fbb73 commit 179d250Copy full SHA for 179d250
src/SchemaOrgModel/Command/GenerateTypesCommand.php
@@ -46,7 +46,14 @@ protected function configure()
46
*/
47
protected function execute(InputInterface $input, OutputInterface $output)
48
{
49
- $config = $input->getArgument('config') ? Yaml::parse($input->getArgument('config')) : [];
+ $configArgument = $input->getArgument('config');
50
+ if ($configArgument) {
51
+ $parser = new Parser();
52
+ $config = $parser->parse(file_get_contents($configArgument));
53
+ unset($parser);
54
+ } else {
55
+ $config = [];
56
+ }
57
58
$processor = new Processor();
59
$configuration = new TypesGeneratorConfiguration();
0 commit comments