IStorageFactory

interface OCP\Files\Storage\IStorageFactory
Creates storage instances and manages and applies storage wrappers
Implemented by:OC\Files\Storage\StorageFactory
Source:lib/public/Files/Storage/IStorageFactory.php#34

Methods

public OCP\Files\Storage\IStorageFactory::addStorageWrapper($wrapperName, $callback)
allow modifier storage behaviour by adding wrappers around storages
$callback should be a function of type (string $mountPoint, Storage $storage) => Storage
Source:

lib/public/Files/Storage/IStorageFactory.php#46

Parameters:
  • $wrapperName (string)
  • $callback (callable)
Returns:

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

Since:

8.0.0

public OCP\Files\Storage\IStorageFactory::getInstance($mountPoint, $class, $arguments)
Source:

lib/public/Files/Storage/IStorageFactory.php#55

Parameters:
Returns:

\OCP\Files\Storage

Since:

8.0.0