src/Command/NodeGeneratorCommand.php 1 location
|
@@ 33-41 (lines=9) @@
|
30 |
|
* |
31 |
|
* @return int |
32 |
|
*/ |
33 |
|
protected function execute(InputInterface $input, OutputInterface $output) |
34 |
|
{ |
35 |
|
$generator = new NodeGenerator(new PhpGenerator(), $input->getOption('useQueryBuilderFactory')); |
36 |
|
|
37 |
|
$output->writeln('<info>Generated code:</info>'); |
38 |
|
$output->writeln($generator->generateByJson($input->getArgument('query'))); |
39 |
|
|
40 |
|
return 0; |
41 |
|
} |
42 |
|
} |
43 |
|
|
src/Command/QueryBuilderGeneratorCommand.php 1 location
|
@@ 46-54 (lines=9) @@
|
43 |
|
* |
44 |
|
* @return int |
45 |
|
*/ |
46 |
|
protected function execute(InputInterface $input, OutputInterface $output) |
47 |
|
{ |
48 |
|
$generator = new QueryBuilderGenerator(new PhpGenerator(), $input->getOption('useMethodName')); |
49 |
|
|
50 |
|
$output->writeln('<info>Generated code:</info>'); |
51 |
|
$output->writeln($generator->generateByJson($input->getArgument('query'))); |
52 |
|
|
53 |
|
return 0; |
54 |
|
} |
55 |
|
} |
56 |
|
|