Mercurial > packages > magicforger
comparison src/Generator/Controller/ControllerGenerator.php @ 5:b0b2e79ad8e6
Not exatly sure what was changed but commiting to it :)
| author | luka |
|---|---|
| date | Thu, 12 Oct 2023 19:41:04 -0400 |
| parents | a20439b1c9d3 |
| children | 769a17898cc0 |
comparison
equal
deleted
inserted
replaced
| 4:a20439b1c9d3 | 5:b0b2e79ad8e6 |
|---|---|
| 2 | 2 |
| 3 namespace Wizzard\MagicForger\Generator\Controller; | 3 namespace Wizzard\MagicForger\Generator\Controller; |
| 4 | 4 |
| 5 use Symfony\Component\Console\Attribute\AsCommand; | 5 use Symfony\Component\Console\Attribute\AsCommand; |
| 6 use Wizzard\MagicForger\Generator\BaseGenerator; | 6 use Wizzard\MagicForger\Generator\BaseGenerator; |
| 7 use Wizzard\MagicForger\Replacer; | |
| 8 use Illuminate\Support\Str; | 7 use Illuminate\Support\Str; |
| 9 | 8 |
| 10 #[AsCommand(name: 'mf:controller')] | 9 #[AsCommand(name: 'mf:controller')] |
| 11 class ControllerGenerator extends BaseGenerator | 10 class ControllerGenerator extends BaseGenerator |
| 12 { | 11 { |
| 34 /** | 33 /** |
| 35 * Execute the console command. | 34 * Execute the console command. |
| 36 */ | 35 */ |
| 37 public function handle() | 36 public function handle() |
| 38 { | 37 { |
| 38 $table = $this->getTable($this->getTableInput()); | |
| 39 parent::handle(); | 39 parent::handle(); |
| 40 } | 40 } |
| 41 | 41 |
| 42 /** | 42 /** |
| 43 * Get the stub file for the generator. | 43 * Get the stub file for the generator. |
