1 | <?php |
||
8 | class MainConfig |
||
9 | { |
||
10 | protected $config = []; |
||
11 | |||
12 | protected $adaptors = []; |
||
13 | |||
14 | protected $cache = []; |
||
15 | |||
16 | protected $fileSystems = []; |
||
17 | |||
18 | 25 | public function __construct(array $config) |
|
26 | |||
27 | 25 | public function validateConfigAndSetDefaults(&$config) |
|
51 | |||
52 | /** |
||
53 | * @param $fileSystem |
||
54 | 2 | * @return FileSystemConfig|null |
|
55 | */ |
||
56 | 2 | public function getFileSystemConfig($fileSystem) |
|
60 | |||
61 | /** |
||
62 | * @param $adaptor |
||
63 | 2 | * @return AdaptorConfig|null |
|
64 | */ |
||
65 | 2 | public function getAdaptorConfig($adaptor) |
|
69 | |||
70 | /** |
||
71 | * @param $cache |
||
72 | * |
||
73 | 3 | * @return CacheConfig|null |
|
74 | */ |
||
75 | 3 | public function getCacheConfig($cache) |
|
79 | |||
80 | 2 | public function hasFileSystemConfig($fileSystem) : bool |
|
84 | |||
85 | 2 | public function hasAdaptorConfig($adaptor) : bool |
|
89 | |||
90 | 2 | public function hasCacheConfig($cache) : bool |
|
94 | |||
95 | 24 | protected function buildAdaptorConfigs() |
|
101 | |||
102 | 24 | protected function buildCacheConfigs() |
|
112 | |||
113 | 24 | protected function buildFileSystemConfigs() |
|
119 | } |
||
120 |