Conditions | 4 |
Paths | 2 |
Total Lines | 20 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 14 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
21 | 3 | public function process(InputInterface $input, OutputInterface $output, CustomizableAppConfig $appConfig) |
|
22 | { |
||
23 | 3 | $this->printTitle($output, 'APPLICATION'); |
|
24 | |||
25 | 3 | if ($appConfig->hasApp() && $this->questionHelper->ask($input, $output, new ConfirmationQuestion( |
|
26 | '<question>Do you want to keep imported application config? (Y/n):</question> ' |
||
27 | 3 | ))) { |
|
28 | 1 | return; |
|
29 | } |
||
30 | |||
31 | 2 | $appConfig->setApp([ |
|
32 | 2 | 'SECRET' => $this->ask( |
|
33 | 2 | $input, |
|
34 | 2 | $output, |
|
35 | 2 | 'Define a secret string that will be used to sign API tokens (leave empty to autogenerate one)', |
|
36 | 2 | null, |
|
37 | true |
||
38 | 2 | ) ?: $this->generateRandomString(32), |
|
39 | 2 | ]); |
|
40 | 2 | } |
|
41 | } |
||
42 |