Mercurial > packages > magicforger
comparison src/Generator/Generator.php @ 12:4bb4daa9e3f1 development
Working with the new FileModifier
| author | luka |
|---|---|
| date | Wed, 24 Apr 2024 19:52:35 -0400 |
| parents | 6468684362c2 |
| children | 7ee152c22478 |
comparison
equal
deleted
inserted
replaced
| 4:a20439b1c9d3 | 12:4bb4daa9e3f1 |
|---|---|
| 47 if ($this->option('all')) { | 47 if ($this->option('all')) { |
| 48 /* $this->input->setOption('factory', true); */ | 48 /* $this->input->setOption('factory', true); */ |
| 49 /* $this->input->setOption('seed', true); */ | 49 /* $this->input->setOption('seed', true); */ |
| 50 /* $this->input->setOption('migration', true); */ | 50 /* $this->input->setOption('migration', true); */ |
| 51 $this->input->setOption('controller', true); | 51 $this->input->setOption('controller', true); |
| 52 /* $this->input->setOption('model', true); */ | 52 $this->input->setOption('model', true); |
| 53 } | 53 } |
| 54 | 54 |
| 55 /* if ($this->option('factory')) { */ | 55 /* if ($this->option('factory')) { */ |
| 56 /* $this->createFactory(); */ | 56 /* $this->createFactory(); */ |
| 57 /* } */ | 57 /* } */ |
| 66 | 66 |
| 67 if ($this->option('controller')) { | 67 if ($this->option('controller')) { |
| 68 $this->createController(); | 68 $this->createController(); |
| 69 } | 69 } |
| 70 | 70 |
| 71 /* if ($this->option('model')) { */ | 71 if ($this->option('model')) { |
| 72 /* $this->createModel(); */ | 72 $this->createModel(); |
| 73 /* } */ | 73 } |
| 74 | 74 |
| 75 } | 75 } |
| 76 | 76 |
| 77 /** | 77 /** |
| 78 * Get the console command options. | 78 * Get the console command options. |
| 82 protected function getOptions() | 82 protected function getOptions() |
| 83 { | 83 { |
| 84 return [ | 84 return [ |
| 85 ['all', 'a', InputOption::VALUE_NONE, 'Generate a migration, seeder, factory, policy, resource controller, and form request classes for the table.'], | 85 ['all', 'a', InputOption::VALUE_NONE, 'Generate a migration, seeder, factory, policy, resource controller, and form request classes for the table.'], |
| 86 ['controller', 'c', InputOption::VALUE_NONE, 'Generate a controller class for the table.'], | 86 ['controller', 'c', InputOption::VALUE_NONE, 'Generate a controller class for the table.'], |
| 87 ['model', 'm', InputOption::VALUE_NONE, 'Generate a controller class for the table.'], | |
| 87 ]; | 88 ]; |
| 88 } | 89 } |
| 89 | 90 |
| 90 /** | 91 /** |
| 91 * Interact further with the user if they were prompted for missing arguments. | 92 * Interact further with the user if they were prompted for missing arguments. |
