Documentation

FilesystemManager
in package
implements Factory

Tags
mixin

\Illuminate\Contracts\Filesystem\Filesystem

Interfaces, Classes and Traits

Factory

Table of Contents

$app  : Application
The application instance.
$customCreators  : array<string|int, mixed>
The registered custom driver creators.
$disks  : array<string|int, mixed>
The array of resolved filesystem drivers.
__call()  : mixed
Dynamically call the default driver instance.
__construct()  : void
Create a new filesystem manager instance.
cloud()  : Filesystem
Get a default cloud filesystem instance.
createFtpDriver()  : Filesystem
Create an instance of the ftp driver.
createLocalDriver()  : Filesystem
Create an instance of the local driver.
createRackspaceDriver()  : Cloud
Create an instance of the Rackspace driver.
createS3Driver()  : Cloud
Create an instance of the Amazon S3 driver.
disk()  : Filesystem
Get a filesystem instance.
drive()  : Filesystem
Get a filesystem instance.
extend()  : $this
Register a custom driver creator Closure.
getDefaultCloudDriver()  : string
Get the default cloud driver name.
getDefaultDriver()  : string
Get the default driver name.
set()  : void
Set the given disk instance.
adapt()  : Filesystem
Adapt the filesystem implementation.
callCustomCreator()  : Filesystem
Call a custom driver creator.
createCacheStore()  : CacheInterface
Create a cache store instance.
createFlysystem()  : FilesystemInterface
Create a Flysystem instance with the given adapter.
formatS3Config()  : array<string|int, mixed>
Format the given S3 configuration with the default options.
get()  : Filesystem
Attempt to get the disk from the local cache.
getConfig()  : array<string|int, mixed>
Get the filesystem connection configuration.
getRackspaceContainer()  : Container
Get the Rackspace Cloud Files container.
resolve()  : Filesystem
Resolve the given disk.

Properties

$customCreators

The registered custom driver creators.

protected array<string|int, mixed> $customCreators = []

$disks

The array of resolved filesystem drivers.

protected array<string|int, mixed> $disks = []

Methods

__call()

Dynamically call the default driver instance.

public __call(string $method, array<string|int, mixed> $parameters) : mixed
Parameters
$method : string
$parameters : array<string|int, mixed>
Return values
mixed

createFtpDriver()

Create an instance of the ftp driver.

public createFtpDriver(array<string|int, mixed> $config) : Filesystem
Parameters
$config : array<string|int, mixed>
Return values
Filesystem

createLocalDriver()

Create an instance of the local driver.

public createLocalDriver(array<string|int, mixed> $config) : Filesystem
Parameters
$config : array<string|int, mixed>
Return values
Filesystem

createRackspaceDriver()

Create an instance of the Rackspace driver.

public createRackspaceDriver(array<string|int, mixed> $config) : Cloud
Parameters
$config : array<string|int, mixed>
Return values
Cloud

createS3Driver()

Create an instance of the Amazon S3 driver.

public createS3Driver(array<string|int, mixed> $config) : Cloud
Parameters
$config : array<string|int, mixed>
Return values
Cloud

extend()

Register a custom driver creator Closure.

public extend(string $driver, Closure $callback) : $this
Parameters
$driver : string
$callback : Closure
Return values
$this

getDefaultCloudDriver()

Get the default cloud driver name.

public getDefaultCloudDriver() : string
Return values
string

getDefaultDriver()

Get the default driver name.

public getDefaultDriver() : string
Return values
string

set()

Set the given disk instance.

public set(string $name, mixed $disk) : void
Parameters
$name : string
$disk : mixed
Return values
void

callCustomCreator()

Call a custom driver creator.

protected callCustomCreator(array<string|int, mixed> $config) : Filesystem
Parameters
$config : array<string|int, mixed>
Return values
Filesystem

createCacheStore()

Create a cache store instance.

protected createCacheStore(mixed $config) : CacheInterface
Parameters
$config : mixed
Tags
throws
InvalidArgumentException
Return values
CacheInterface

formatS3Config()

Format the given S3 configuration with the default options.

protected formatS3Config(array<string|int, mixed> $config) : array<string|int, mixed>
Parameters
$config : array<string|int, mixed>
Return values
array<string|int, mixed>

getConfig()

Get the filesystem connection configuration.

protected getConfig(string $name) : array<string|int, mixed>
Parameters
$name : string
Return values
array<string|int, mixed>

getRackspaceContainer()

Get the Rackspace Cloud Files container.

protected getRackspaceContainer(Rackspace $client, array<string|int, mixed> $config) : Container
Parameters
$client : Rackspace
$config : array<string|int, mixed>
Return values
Container

Search results