Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class DropboxFactory extends AbstractFlysystemFactory |
||
13 | { |
||
14 | protected function getConfigKey(): string |
||
15 | { |
||
16 | return 'dropbox'; |
||
17 | } |
||
18 | |||
19 | protected function getFilesystemAdapter(array $config): FilesystemAdapter |
||
20 | { |
||
21 | $client = new Client($config['access_token']); |
||
22 | $adapter = new DropboxAdapter($client); |
||
23 | |||
24 | return $adapter; |
||
25 | } |
||
26 | |||
27 | protected function getStore(array $config): StoreInterface |
||
34 | } |
||
35 | } |
||
36 |