Mercurial > packages > magicforger
comparison src/Generator/Requests/RequestGenerator.php @ 7:769a17898cc0
Various changes to the generators and replacers - probably mostly just formatting
| author | luka |
|---|---|
| date | Wed, 18 Oct 2023 21:04:11 -0400 |
| parents | b0b2e79ad8e6 |
| children | 81a76472ba21 |
comparison
equal
deleted
inserted
replaced
| 6:b46922d4a301 | 7:769a17898cc0 |
|---|---|
| 5 use Symfony\Component\Console\Attribute\AsCommand; | 5 use Symfony\Component\Console\Attribute\AsCommand; |
| 6 use Symfony\Component\Console\Input\InputInterface; | 6 use Symfony\Component\Console\Input\InputInterface; |
| 7 use Symfony\Component\Console\Input\InputOption; | 7 use Symfony\Component\Console\Input\InputOption; |
| 8 use Symfony\Component\Console\Output\OutputInterface; | 8 use Symfony\Component\Console\Output\OutputInterface; |
| 9 use Wizzard\MagicForger\Generator\BaseGenerator; | 9 use Wizzard\MagicForger\Generator\BaseGenerator; |
| 10 use Illuminate\Support\Str; | |
| 11 | 10 |
| 12 #[AsCommand(name: 'mf:request')] | 11 #[AsCommand(name: 'mf:request')] |
| 13 class RequestGenerator extends BaseGenerator | 12 class RequestGenerator extends BaseGenerator |
| 14 { | 13 { |
| 15 /** | 14 /** |
| 79 * @return void | 78 * @return void |
| 80 */ | 79 */ |
| 81 protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output) | 80 protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output) |
| 82 { | 81 { |
| 83 } | 82 } |
| 83 | |
| 84 /** | 84 /** |
| 85 * Get the stub file for the generator. | 85 * Get the stub file for the generator. |
| 86 * | 86 * |
| 87 * @return string | 87 * @return string |
| 88 */ | 88 */ |
| 97 | 97 |
| 98 protected function createUpdateRequest() | 98 protected function createUpdateRequest() |
| 99 { | 99 { |
| 100 $this->call('mf:update_request', ['table' => $this->getTableInput()]); | 100 $this->call('mf:update_request', ['table' => $this->getTableInput()]); |
| 101 } | 101 } |
| 102 | |
| 103 } | 102 } |
