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
createFlysystem ( League\...\AdapterInterface $adapter , array $config ) : League\...\FilesystemInterface
Create a Flysystem instance with the given adapter.
Parameters
- $adapter League\...\AdapterInterface
- $config array
createCacheStore ( $config ) : League\...\CacheInterface
Create a cache store instance.
Parameters
- $config mixed
adapt ( League\...\FilesystemInterface $filesystem ) : Filesystem
Adapt the filesystem implementation.
Parameters
- $filesystem League\...\FilesystemInterface
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