Nextcloud PHP API (master)

IStorageFactory

Creates storage instances and manages and applies storage wrappers

Tags
since
8.0.0

Table of Contents

Methods

addStorageWrapper()  : bool
allow modifier storage behaviour by adding wrappers around storages
getInstance()  : Storage

Methods

addStorageWrapper()

allow modifier storage behaviour by adding wrappers around storages

public addStorageWrapper(string $wrapperName, callable $callback) : bool

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

Parameters
$wrapperName : string
$callback : callable
Tags
since
8.0.0
Return values
bool

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

getInstance()

public getInstance(IMountPoint $mountPoint, string $class, array<string|int, mixed> $arguments) : Storage
Parameters
$mountPoint : IMountPoint
$class : string
$arguments : array<string|int, mixed>
Tags
since
8.0.0
Return values
Storage

        
On this page

Search results