12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- namespace OCA\CloudFederationAPI;
- use OCP\Federation\ICloudFederationProviderManager;
- class Config {
-
- private $cloudFederationProviderManager;
- public function __construct(ICloudFederationProviderManager $cloudFederationProviderManager) {
- $this->cloudFederationProviderManager = $cloudFederationProviderManager;
- }
-
- public function getSupportedShareTypes($resourceType) {
- try {
- $provider = $this->cloudFederationProviderManager->getCloudFederationProvider($resourceType);
- return $provider->getSupportedShareTypes();
- } catch (\Exception $e) {
- return [];
- }
- }
- }
|