| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | public function handle(ApiJwtScaffold $apiJwtScaffold): void |
||
| 45 | { |
||
| 46 | $packageToUse = $this->choice( |
||
| 47 | 'which package will you like to use ?', |
||
| 48 | $this->packages, |
||
| 49 | $this->packages[0] |
||
| 50 | ); |
||
| 51 | |||
| 52 | $confirmed = $this->confirm('This action may override existing auth configurations. Do you want to proceed?'); |
||
| 53 | |||
| 54 | if (!$confirmed) { |
||
| 55 | $this->info('Scaffolding aborted'); |
||
| 56 | } |
||
| 57 | |||
| 58 | $this->info("Scaffolding your api auth using $packageToUse. Please wait.."); |
||
| 59 | |||
| 60 | $this->info($apiJwtScaffold->setup($packageToUse)); |
||
| 61 | |||
| 62 | $this->info('Authentication scaffolding generated successfully. Happy Hacking'); |
||
| 63 | } |
||
| 64 | } |
||
| 65 |