Properties

$adapter

$adapter : \League\Flysystem\AdapterInterface

Type

AdapterInterface

$cache

$cache : \League\Flysystem\Cached\CacheInterface

Type

CacheInterface

Methods

__construct()

__construct(\League\Flysystem\AdapterInterface  $adapter, \League\Flysystem\Cached\CacheInterface  $cache) : mixed

Constructor.

Parameters

\League\Flysystem\AdapterInterface $adapter
\League\Flysystem\Cached\CacheInterface $cache

Returns

mixed —

getAdapter()

getAdapter() : \League\Flysystem\AdapterInterface

Get the underlying Adapter implementation.

Returns

\League\Flysystem\AdapterInterface —

getCache()

getCache() : \League\Flysystem\Cached\CacheInterface

Get the used Cache implementation.

Returns

\League\Flysystem\Cached\CacheInterface —

write()

write(mixed  $path, mixed  $contents, \League\Flysystem\Config  $config) : array|false

Write a new file.

Parameters

mixed $path
mixed $contents
\League\Flysystem\Config $config

Config object

Returns

array|false —

false on failure file meta data on success

writeStream()

writeStream(mixed  $path, mixed  $resource, \League\Flysystem\Config  $config) : array|false

Write a new file using a stream.

Parameters

mixed $path
mixed $resource
\League\Flysystem\Config $config

Config object

Returns

array|false —

false on failure file meta data on success

update()

update(mixed  $path, mixed  $contents, \League\Flysystem\Config  $config) : array|false

Update a file.

Parameters

mixed $path
mixed $contents
\League\Flysystem\Config $config

Config object

Returns

array|false —

false on failure file meta data on success

updateStream()

updateStream(mixed  $path, mixed  $resource, \League\Flysystem\Config  $config) : array|false

Update a file using a stream.

Parameters

mixed $path
mixed $resource
\League\Flysystem\Config $config

Config object

Returns

array|false —

false on failure file meta data on success

rename()

rename(mixed  $path, mixed  $newPath) : bool

Rename a file.

Parameters

mixed $path
mixed $newPath

Returns

bool —

copy()

copy(mixed  $path, mixed  $newpath) : bool

Copy a file.

Parameters

mixed $path
mixed $newpath

Returns

bool —

delete()

delete(mixed  $path) : bool

Delete a file.

Parameters

mixed $path

Returns

bool —

deleteDir()

deleteDir(mixed  $dirname) : bool

Delete a directory.

Parameters

mixed $dirname

Returns

bool —

createDir()

createDir(mixed  $dirname, \League\Flysystem\Config  $config) : array|false

Create a directory.

Parameters

mixed $dirname

directory name

\League\Flysystem\Config $config

Returns

array|false —

setVisibility()

setVisibility(mixed  $path, mixed  $visibility) : array|false

Set the visibility for a file.

Parameters

mixed $path
mixed $visibility

Returns

array|false —

file meta data

has()

has(mixed  $path) : mixed

{@inheritdoc}

Parameters

mixed $path

Returns

mixed —

read()

read(mixed  $path) : mixed

{@inheritdoc}

Parameters

mixed $path

Returns

mixed —

readStream()

readStream(mixed  $path) : mixed

{@inheritdoc}

Parameters

mixed $path

Returns

mixed —

listContents()

listContents(mixed  $directory = '', mixed  $recursive = false) : mixed

{@inheritdoc}

Parameters

mixed $directory
mixed $recursive

Returns

mixed —

getMetadata()

getMetadata(mixed  $path) : mixed

{@inheritdoc}

Parameters

mixed $path

Returns

mixed —

getSize()

getSize(mixed  $path) : mixed

{@inheritdoc}

Parameters

mixed $path

Returns

mixed —

getMimetype()

getMimetype(mixed  $path) : mixed

{@inheritdoc}

Parameters

mixed $path

Returns

mixed —

getTimestamp()

getTimestamp(mixed  $path) : mixed

{@inheritdoc}

Parameters

mixed $path

Returns

mixed —

getVisibility()

getVisibility(mixed  $path) : mixed

{@inheritdoc}

Parameters

mixed $path

Returns

mixed —

callWithFallback()

callWithFallback(string  $property, string  $path, string  $method) : mixed

Call a method and cache the response.

Parameters

string $property
string $path
string $method

Returns

mixed —