phpDocumentor

FlySystemFactory
in package
implements FileSystemFactory

Table of Contents

Interfaces

FileSystemFactory
Interface for FileSystem factories.

Properties

$mountManager  : MountManager

Methods

__construct()  : mixed
create()  : Filesystem
Returns a Filesystem instance based on the scheme of the provided Dsn
createAdapter()  : AdapterInterface
formatDsn()  : string
Removes file:/// scheme from the dsn when needed.

Properties

Methods

__construct()

public __construct(MountManager $mountManager) : mixed
Parameters
$mountManager : MountManager

create()

Returns a Filesystem instance based on the scheme of the provided Dsn

public create(Dsn $dsn) : Filesystem
Parameters
$dsn : Dsn
Return values
Filesystem

createAdapter()

private createAdapter(Dsn $dsn) : AdapterInterface
Parameters
$dsn : Dsn
Return values
AdapterInterface

formatDsn()

Removes file:/// scheme from the dsn when needed.

private formatDsn(Dsn $dsn) : string

The local adapter of flysystem cannot handle the file:/// on all windows platforms. At the moment it is unsure why this is exactly happening this way but it seems that php on windows 10 is not able to handle streams properly while windows server is able to do this.

Github actions will NOT reproduce this behavior since they are running a server edition of windows.

Parameters
$dsn : Dsn
Return values
string

        
On this page

Search results