Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
24 | } |
||
25 | |||
26 | class JwtCommand extends Command |
||
27 | { |
||
28 | protected function configure() |
||
31 | } |
||
32 | |||
33 | protected function execute(Input $input, Output $output) |
||
34 | { |
||
35 | $file = new PhpFile(); |
||
36 | $file->addComment('Jwt 配置'); |
||
37 | $file->setStrictTypes(); |
||
38 | |||
39 | $config = config('jwt'); |
||
40 | $config['default']['signerKey'] = randomKey(); |
||
41 | $config = 'return ' . Helpers::dump($config) . ';'; |
||
|
|||
42 | |||
43 | file_put_contents($this->app->getConfigPath() . 'jwt.php', $file . $config); |
||
47 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.