FilesystemManager
class FilesystemManager implements Factory mixin Filesystem
Properties
protected Application | $app | The application instance. |
|
protected array | $disks | The array of resolved filesystem drivers. |
|
protected array | $customCreators | The registered custom driver creators. |
Methods
Get a filesystem instance.
Get a filesystem instance.
Get a default cloud filesystem instance.
Attempt to get the disk from the local cache.
Resolve the given disk.
Call a custom driver creator.
Create an instance of the local driver.
Create an instance of the ftp driver.
Create an instance of the Amazon S3 driver.
Format the given S3 configuration with the default options.
Create an instance of the Rackspace driver.
Get the Rackspace Cloud Files container.
Create a Flysystem instance with the given adapter.
Adapt the filesystem implementation.
Set the given disk instance.
Get the filesystem connection configuration.
Get the default driver name.
Get the default cloud driver name.
Dynamically call the default driver instance.
Details
at line 51
void
__construct(Application $app)
Create a new filesystem manager instance.
at line 62
Filesystem
drive(string $name = null)
Get a filesystem instance.
at line 73
Filesystem
disk(string $name = null)
Get a filesystem instance.
at line 85
Filesystem
cloud()
Get a default cloud filesystem instance.
at line 98
protected Filesystem
get(string $name)
Attempt to get the disk from the local cache.
at line 111
protected Filesystem
resolve(string $name)
Resolve the given disk.
at line 134
protected Filesystem
callCustomCreator(array $config)
Call a custom driver creator.
at line 151
Filesystem
createLocalDriver(array $config)
Create an instance of the local driver.
at line 170
Filesystem
createFtpDriver(array $config)
Create an instance of the ftp driver.
at line 187
Cloud
createS3Driver(array $config)
Create an instance of the Amazon S3 driver.
at line 206
protected array
formatS3Config(array $config)
Format the given S3 configuration with the default options.
at line 223
Cloud
createRackspaceDriver(array $config)
Create an instance of the Rackspace driver.
at line 243
protected Container
getRackspaceContainer(Rackspace $client, array $config)
Get the Rackspace Cloud Files container.
at line 259
protected FlysystemInterface
createFlysystem(AdapterInterface $adapter, array $config)
Create a Flysystem instance with the given adapter.
at line 272
protected Filesystem
adapt(FilesystemInterface $filesystem)
Adapt the filesystem implementation.
at line 284
void
set(string $name, mixed $disk)
Set the given disk instance.
at line 295
protected array
getConfig(string $name)
Get the filesystem connection configuration.
at line 305
string
getDefaultDriver()
Get the default driver name.
at line 315
string
getDefaultCloudDriver()
Get the default cloud driver name.
at line 327
$this
extend(string $driver, Closure $callback)
Register a custom driver creator Closure.
at line 341
mixed
__call(string $method, array $parameters)
Dynamically call the default driver instance.