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: 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: Parameters: - $mountPoint (
OCP\Files\Mount\IMountPoint
) - $class (string)
- $arguments (array)
Returns: Since: 8.0.0
- $mountPoint (