1
0

FederatedShareProviderFactory.php 522 B

123456789101112131415161718192021222324
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\Provisioning_API;
  8. use OCA\FederatedFileSharing\FederatedShareProvider;
  9. use OCP\IServerContainer;
  10. class FederatedShareProviderFactory {
  11. public function __construct(
  12. private IServerContainer $serverContainer,
  13. ) {
  14. }
  15. public function get(): FederatedShareProvider {
  16. return $this->serverContainer->query(FederatedShareProvider::class);
  17. }
  18. }