Conditions | 2 |
Paths | 2 |
Total Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | protected function execute(InputInterface $input, OutputInterface $output) |
||
29 | { |
||
30 | $output->writeln('Generating package code...'); |
||
31 | |||
32 | $generator = new PackageGenerator(); |
||
33 | |||
34 | $definitions = new Definitions([ |
||
35 | 'core' => 'https://raw.githubusercontent.com/schemaorg/schemaorg/master/data/releases/7.04/schema.rdfa', |
||
36 | ]); |
||
37 | |||
38 | if (! $input->getOption('local')) { |
||
39 | $definitions->preload(); |
||
40 | } |
||
41 | |||
42 | $generator->generate($definitions); |
||
43 | |||
44 | $output->writeln('Done!'); |
||
45 | |||
46 | return 0; |
||
47 | } |
||
48 | } |
||
49 |