1 | <?php |
||
28 | class Config implements \OCP\GlobalScale\IConfig { |
||
29 | |||
30 | /** @var IConfig */ |
||
31 | private $config; |
||
32 | |||
33 | /** |
||
34 | * Config constructor. |
||
35 | * |
||
36 | * @param IConfig $config |
||
37 | */ |
||
38 | public function __construct(IConfig $config) { |
||
41 | |||
42 | /** |
||
43 | * check if global scale is enabled |
||
44 | * |
||
45 | * @since 12.0.1 |
||
46 | * @return bool |
||
47 | */ |
||
48 | public function isGlobalScaleEnabled() { |
||
52 | |||
53 | /** |
||
54 | * check if federation should only be used internally in a global scale setup |
||
55 | * |
||
56 | * @since 12.0.1 |
||
57 | * @return bool |
||
58 | */ |
||
59 | public function onlyInternalFederation() { |
||
70 | |||
71 | } |
||
72 |