| @@ 68-81 (lines=14) @@ | ||
| 65 | * @return void |
|
| 66 | * @throws \Symfony\Component\Console\Exception\ExceptionInterface |
|
| 67 | */ |
|
| 68 | protected function runGenerateModel() : void |
|
| 69 | { |
|
| 70 | $command = $this->getApplication()->find('generate:model'); |
|
| 71 | ||
| 72 | $arguments = [ |
|
| 73 | 'command' => 'generate:model', |
|
| 74 | 'model' => $this->getInput()->getArgument('model'), |
|
| 75 | 'table' => $this->getInput()->getArgument('table') |
|
| 76 | ]; |
|
| 77 | $command->run( |
|
| 78 | new ArrayInput($arguments), |
|
| 79 | $this->getOutput() |
|
| 80 | ); |
|
| 81 | } |
|
| 82 | ||
| 83 | /** |
|
| 84 | * Generate Module |
|
| @@ 109-122 (lines=14) @@ | ||
| 106 | * @return void |
|
| 107 | * @throws \Symfony\Component\Console\Exception\ExceptionInterface |
|
| 108 | */ |
|
| 109 | protected function runGenerateCrud() : void |
|
| 110 | { |
|
| 111 | $command = $this->getApplication()->find('generate:crud'); |
|
| 112 | ||
| 113 | $arguments = [ |
|
| 114 | 'command' => 'generate:crud', |
|
| 115 | 'model' => $this->getInput()->getArgument('model'), |
|
| 116 | 'module' => $this->getInput()->getArgument('module') |
|
| 117 | ]; |
|
| 118 | $command->run( |
|
| 119 | new ArrayInput($arguments), |
|
| 120 | $this->getOutput() |
|
| 121 | ); |
|
| 122 | } |
|
| 123 | ||
| 124 | /** |
|
| 125 | * Generate Grid |
|
| @@ 130-143 (lines=14) @@ | ||
| 127 | * @return void |
|
| 128 | * @throws \Symfony\Component\Console\Exception\ExceptionInterface |
|
| 129 | */ |
|
| 130 | protected function runGenerateGrid() : void |
|
| 131 | { |
|
| 132 | $command = $this->getApplication()->find('generate:grid'); |
|
| 133 | ||
| 134 | $arguments = [ |
|
| 135 | 'command' => 'generate:grid', |
|
| 136 | 'model' => $this->getInput()->getArgument('model'), |
|
| 137 | 'module' => $this->getInput()->getArgument('module') |
|
| 138 | ]; |
|
| 139 | $command->run( |
|
| 140 | new ArrayInput($arguments), |
|
| 141 | $this->getOutput() |
|
| 142 | ); |
|
| 143 | } |
|
| 144 | ||
| 145 | /** |
|
| 146 | * {@inheritdoc} |
|