FlySystemFactory

in package
Implements FileSystemFactory

Interfaces, Classes & Used Traits

FileSystemFactory
Interface for FileSystem factories.

Properties

private$mountManager  : \League\Flysystem\MountManager                

Methods

public__construct(MountManager $mountManager) : mixed

Parameters

$mountManager : MountManager

Returns

mixed

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

publiccreate(Dsn $dsn) : Filesystem

Parameters

$dsn : Dsn

Returns

Filesystem

privatecreateAdapter(Dsn $dsn) : AdapterInterface

Parameters

$dsn : Dsn

Returns

AdapterInterface

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

privateformatDsn(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

Returns

string