apps/files_external/lib/Config/ConfigAdapter.php
/**
	 * Construct the storage implementation
	 *
	 * @param StorageConfig $storageConfig
	 * @return Storage
	 */
Construct the storage implementation
@param StorageConfig $storageConfig
@return Storage
Construct the storage implementation @param StorageConfig $storageConfig @return Storage
private function constructStorage(StorageConfig $storageConfig) {
		$class = $storageConfig->getBackend()->getStorageClass();
		$storage = new $class($storageConfig->getBackendOptions());
		$storage = $storageConfig->getBackend()->wrapStorage($storage);
		$storage = $storageConfig->getAuthMechanism()->wrapStorage($storage);
		return $storage;
	}
private function constructStorage ( StorageConfig $ storageConfig ) { $ class = $ storageConfig -> getBackend ( ) -> getStorageClass ( ) ; $ storage = new $ class ( $ storageConfig -> getBackendOptions ( ) ) ; $ storage = $ storageConfig -> getBackend ( ) -> wrapStorage ( $ storage ) ; $ storage = $ storageConfig -> getAuthMechanism ( ) -> wrapStorage ( $ storage ) ; return $ storage ; }
Construct the storage implementation
 @param StorageConfig $storageConfig
 @return Storage
Construct the storage implementation @param StorageConfig $storageConfig @return Storage
// auth mechanism should fire first