Documentation

DriveDispatcher
in package

Table of Contents

$drives  : mixed
get()  : Blob
Retrieves a file or directory (node) from a given string. By default, URIs are extracted by splitting it by forward slashes.
init()  : mixed
Initializes the drives from the definitions in the configurations. Virtual drives provide access to potentially more exotic drivers like object storages or similar.
register()  : mixed
Registers a drive with the dispatcher. Once your drive is registered, you can use it normally.
retrieve()  : Blob
unregister()  : mixed
Registers a drive with the dispatcher. Once your drive is registered, you can use it normally.

Properties

Methods

get()

Retrieves a file or directory (node) from a given string. By default, URIs are extracted by splitting it by forward slashes.

public get(string $location) : Blob
Parameters
$location : string
Tags
deprecated

since version 20200520

Return values
Blob

init()

Initializes the drives from the definitions in the configurations. Virtual drives provide access to potentially more exotic drivers like object storages or similar.

public init() : mixed
Return values
mixed

register()

Registers a drive with the dispatcher. Once your drive is registered, you can use it normally.

public register(mixed $scheme, DriveInterface $drive) : mixed
Parameters
$scheme : mixed
$drive : DriveInterface
Return values
mixed

retrieve()

public retrieve(type $location) : Blob
Parameters
$location : type
Tags
throws
PrivateException
Return values
Blob

unregister()

Registers a drive with the dispatcher. Once your drive is registered, you can use it normally.

public unregister(MountPoint|string $drive) : mixed
Parameters
$drive : MountPoint|string
Return values
mixed

Search results