Skip to content

Commit 179d250

Browse files
committed
Remove deprecated YAML::parse call
1 parent 51fbb73 commit 179d250

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/SchemaOrgModel/Command/GenerateTypesCommand.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,14 @@ protected function configure()
4646
*/
4747
protected function execute(InputInterface $input, OutputInterface $output)
4848
{
49-
$config = $input->getArgument('config') ? Yaml::parse($input->getArgument('config')) : [];
49+
$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+
}
5057

5158
$processor = new Processor();
5259
$configuration = new TypesGeneratorConfiguration();

0 commit comments

Comments
 (0)