Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function extract(ConfigInterface $config): array |
||
13 | { |
||
14 | /* |
||
15 | * @see https://docs.madelineproto.xyz/FULL_README.html#settings |
||
16 | */ |
||
17 | return [ |
||
18 | 'app_info' => [ |
||
19 | 'api_id' => $config->getId(), |
||
20 | 'api_hash' => $config->getHash(), |
||
21 | ], |
||
22 | 'logger' => [ |
||
23 | 'logger' => $config->getLogLevel(), |
||
24 | 'logger_level' => Logger::VERBOSE, |
||
25 | ], |
||
26 | 'authorization' => [ |
||
27 | 'default_temp_auth_key_expires_in' => $config->getAuthExpiresInSeconds(), |
||
28 | ], |
||
29 | 'updates' => [ |
||
30 | 'handle_updates' => $config->getAuth()->isHandleUpdates(), |
||
31 | ], |
||
32 | 'connection_settings' => [ |
||
33 | 'all' => [ |
||
34 | 'pfs' => false, |
||
35 | ], |
||
40 |