1
0

IConfig.php 585 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCP\GlobalScale;
  7. /**
  8. * Interface IConfig
  9. *
  10. * Configuration of the global scale architecture
  11. *
  12. * @since 12.0.1
  13. */
  14. interface IConfig {
  15. /**
  16. * check if global scale is enabled
  17. *
  18. * @since 12.0.1
  19. * @return bool
  20. */
  21. public function isGlobalScaleEnabled();
  22. /**
  23. * check if federation should only be used internally in a global scale setup
  24. *
  25. * @since 12.0.1
  26. * @return bool
  27. */
  28. public function onlyInternalFederation();
  29. }