1
0

FederatedShareProviderFactory.php 611 B

1234567891011121314151617181920212223242526
  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. /** @var IServerContainer */
  12. private $serverContainer;
  13. public function __construct(IServerContainer $serverContainer) {
  14. $this->serverContainer = $serverContainer;
  15. }
  16. public function get(): FederatedShareProvider {
  17. return $this->serverContainer->query(FederatedShareProvider::class);
  18. }
  19. }