Stream wrapper manager and organizer.

package filicious-core
author Christian Schiffler
author Tristan Lins
author Oliver Hoff

 Methods

Automatically register a filesystem.

autoregisterFilesystem(\Filicious\Filesystem $filesystem) : \Filicious\Stream\array($host,
Static

Parameters

$filesystem

\Filicious\Filesystem

Returns

Release unused stream wrappers.

free() 
Static

Register a new filesystem wrapper.

registerFilesystem(\Filicious\Filesystem $filesystem, string $host, string $scheme) 
Static

Parameters

$filesystem

\Filicious\Filesystem

$host

string

$scheme

string

Exceptions

\Filicious\Exception\StreamWrapperAlreadyRegisteredException

Register a stream.

registerStream(\Filicious\Stream $stream) : int
Static

Parameters

$stream

Returns

int

searchFilesystem()

searchFilesystem($host, $scheme) 
Static

Parameters

$host

$scheme

searchStream()

searchStream($index) 
Static

Parameters

$index

unregisterFilesystem()

unregisterFilesystem($host, $scheme, $silent) 
Static

Parameters

$host

$scheme

$silent

Unregister a stream.

unregisterStream(\Filicious\Stream $stream) 
Static

Parameters

$stream

__construct()

__construct() 

 Properties

 

Index for autoregistered filesystems.

$autoIndex : int
Static
 

Map of registered wrappers and filesystems.

$filesystems : array
Static
 

Index for autoregistered streams.

$streamIndex : int
Static
 

Map of registered streams.

$streams : array
Static