FilesystemManager
Implements
Properties
$disks array
The array of resolved filesystem drivers.
$customCreators array
The registered custom driver creators.
Methods
__construct ( $app ) : void
Create a new filesystem manager instance.
Parameters
- $app Application
get ( $name ) : Filesystem
Attempt to get the disk from the local cache.
Parameters
- $name string
resolve ( $name , $config ) : Filesystem
Resolve the given disk.
Parameters
- $name string
- $config array|null
callCustomCreator ( array $config ) : Filesystem
Call a custom driver creator.
Parameters
- $config array
createLocalDriver ( array $config ) : Filesystem
Create an instance of the local driver.
Parameters
- $config array
createFtpDriver ( array $config ) : Filesystem
Create an instance of the ftp driver.
Parameters
- $config array
createSftpDriver ( array $config ) : Filesystem
Create an instance of the sftp driver.
Parameters
- $config array
createS3Driver ( array $config ) : Cloud
Create an instance of the Amazon S3 driver.
Parameters
- $config array
formatS3Config ( array $config ) : array
Format the given S3 configuration with the default options.
Parameters
- $config array
createScopedDriver ( array $config ) : Filesystem
Create a scoped driver.
Parameters
- $config array
createFlysystem ( League\...\FilesystemAdapter $adapter , array $config ) : League\...\FilesystemOperator
Create a Flysystem instance with the given adapter.
Parameters
- $adapter League\...\FilesystemAdapter
- $config array
set ( $name , $disk ) : $this
Set the given disk instance.
Parameters
- $name string
- $disk mixed
getConfig ( $name ) : array
Get the filesystem connection configuration.
Parameters
- $name string
getDefaultDriver ( ) : string
Get the default driver name.
getDefaultCloudDriver ( ) : string
Get the default cloud driver name.
forgetDisk ( $disk ) : $this
Unset the given disk instances.
Parameters
- $disk array|string
purge ( $name ) : void
Disconnect the given disk and remove from local cache.
Parameters
- $name string|null
extend ( $driver , Closure $callback ) : $this
Register a custom driver creator Closure.
Parameters
- $driver string
- $callback Closure
setApplication ( $app ) : $this
Set the application instance used by the manager.
Parameters
- $app Application
__call ( $method , $parameters ) : mixed
Dynamically call the default driver instance.
Parameters
- $method string
- $parameters array