IConstructableStorage.php 722 B

1234567891011121314151617181920212223242526
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. // use OCP namespace for all classes that are considered public.
  8. // This means that they should be used by apps instead of the internal Nextcloud classes
  9. namespace OCP\Files\Storage;
  10. /**
  11. * Marks a storage as constructable. Allows to pass the storage as a string to a mounpoint and let it build the instance.
  12. *
  13. * @since 31.0.0
  14. */
  15. interface IConstructableStorage {
  16. /**
  17. * @param array $parameters is a free form array with the configuration options needed to construct the storage
  18. *
  19. * @since 31.0.0
  20. */
  21. public function __construct(array $parameters);
  22. }