\OCP\Files\StorageIStorageFactory

Creates storage instances and manages and applies storage wrappers

Summary

Methods
Constants
addStorageWrapper()
getInstance()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

addStorageWrapper()

addStorageWrapper(string  $wrapperName, callable  $callback) : boolean

allow modifier storage behaviour by adding wrappers around storages

$callback should be a function of type (string $mountPoint, Storage $storage) => Storage

Parameters

string $wrapperName
callable $callback

Returns

boolean —

true if the wrapper was added, false if there was already a wrapper with this name registered

getInstance()

getInstance(\OCP\Files\Mount\IMountPoint  $mountPoint, string  $class, array  $arguments) : \OCP\Files\Storage

Parameters

\OCP\Files\Mount\IMountPoint $mountPoint
string $class
array $arguments

Returns

\OCP\Files\Storage