1 | <?php |
||
8 | class FileSystemConfig |
||
9 | { |
||
10 | /** @var array */ |
||
11 | protected $fileSystems = []; |
||
12 | |||
13 | /** @var array */ |
||
14 | protected $config = []; |
||
15 | |||
16 | /** |
||
17 | * FileSystemConfig constructor. |
||
18 | * |
||
19 | * @param array $config |
||
20 | */ |
||
21 | 12 | public function __construct(array $config) |
|
29 | |||
30 | /** |
||
31 | * Get the adaptor |
||
32 | * |
||
33 | * @return string |
||
34 | */ |
||
35 | 12 | public function getAdaptor() |
|
39 | |||
40 | /** |
||
41 | * Get the cache |
||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | 1 | public function getCache() |
|
49 | |||
50 | /** |
||
51 | * Get the plugins |
||
52 | * |
||
53 | * @return array |
||
54 | */ |
||
55 | 1 | public function getPlugins() |
|
59 | |||
60 | /** |
||
61 | * Is this defined as a file manager? |
||
62 | * |
||
63 | * @return bool |
||
64 | */ |
||
65 | 12 | public function isManager() |
|
73 | |||
74 | /** |
||
75 | * Get the configured File Systems. |
||
76 | * Used for manager configuration |
||
77 | * |
||
78 | * @return FileSystemConfig[] |
||
79 | */ |
||
80 | 1 | public function getFileSystems() |
|
84 | |||
85 | /** |
||
86 | * Build out the file system configs for use |
||
87 | * by the manager. |
||
88 | */ |
||
89 | 3 | protected function buildManagerFileSystemConfigs() |
|
101 | } |
||
102 |