FlySystemFactory
in package
implements
FileSystemFactory
Interfaces, Classes and Traits
- FileSystemFactory
- Interface for FileSystem factories.
Table of Contents
- $mountManager : MountManager
- __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
$mountManager
private
MountManager
$mountManager
Methods
__construct()
public
__construct(MountManager $mountManager) : mixed
Parameters
- $mountManager : MountManager
Return values
mixed —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