lib/private/Share20/ProviderFactory.php
/**
	 * Create the federated share provider
	 *
	 * @return FederatedShareProvider
	 */
Create the federated share provider
@return FederatedShareProvider
Create the federated share provider @return FederatedShareProvider
protected function federatedShareProvider() {
		if ($this->federatedProvider === null) {
			$appManager = $this->serverContainer->getAppManager();
			if (!$appManager->isEnabledForUser('federatedfilesharing')) {
				return null;
			}
			$l = $this->serverContainer->getL10N('federatedfilessharing');
			$addressHandler = new AddressHandler(
				$this->serverContainer->getURLGenerator(),
				$l,
				$this->serverContainer->getCloudIdManager()
			);
			$notifications = new Notifications(
				$addressHandler,
				$this->serverContainer->getHTTPClientService(),
				$this->serverContainer->query(\OCP\OCS\IDiscoveryService::class),
				$this->serverContainer->getJobList()
			);
			$tokenHandler = new TokenHandler(
				$this->serverContainer->getSecureRandom()
			);
			$this->federatedProvider = new FederatedShareProvider(
				$this->serverContainer->getDatabaseConnection(),
				$addressHandler,
				$notifications,
				$tokenHandler,
				$l,
				$this->serverContainer->getLogger(),
				$this->serverContainer->getLazyRootFolder(),
				$this->serverContainer->getConfig(),
				$this->serverContainer->getUserManager(),
				$this->serverContainer->getCloudIdManager()
			);
		}
		return $this->federatedProvider;
	}
protected function federatedShareProvider ( ) { if ( $ this -> federatedProvider === null ) { $ appManager = $ this -> serverContainer -> getAppManager ( ) ; if ( ! $ appManager -> isEnabledForUser ( 'federatedfilesharing' ) ) { return null ; } $ l = $ this -> serverContainer -> getL10N ( 'federatedfilessharing' ) ; $ addressHandler = new AddressHandler ( $ this -> serverContainer -> getURLGenerator ( ) , $ l , $ this -> serverContainer -> getCloudIdManager ( ) ) ; $ notifications = new Notifications ( $ addressHandler , $ this -> serverContainer -> getHTTPClientService ( ) , $ this -> serverContainer -> query ( \ OCP \ OCS \ IDiscoveryService :: class ) , $ this -> serverContainer -> getJobList ( ) ) ; $ tokenHandler = new TokenHandler ( $ this -> serverContainer -> getSecureRandom ( ) ) ; $ this -> federatedProvider = new FederatedShareProvider ( $ this -> serverContainer -> getDatabaseConnection ( ) , $ addressHandler , $ notifications , $ tokenHandler , $ l , $ this -> serverContainer -> getLogger ( ) , $ this -> serverContainer -> getLazyRootFolder ( ) , $ this -> serverContainer -> getConfig ( ) , $ this -> serverContainer -> getUserManager ( ) , $ this -> serverContainer -> getCloudIdManager ( ) ) ; } return $ this -> federatedProvider ; }
Create the federated share provider
 @return FederatedShareProvider
Create the federated share provider @return FederatedShareProvider
/*
			 * Check if the app is enabled
			 */ /*
			 * TODO: add factory to federated sharing app
			 */