$plugins
$plugins : array
$adapter : \League\Flysystem\AdapterInterface
addPlugin(\League\Flysystem\PluginInterface $plugin) : $this
Register a plugin.
\League\Flysystem\PluginInterface | $plugin |
__construct(\League\Flysystem\AdapterInterface $adapter, \League\Flysystem\Config|array $config = null)
Constructor.
\League\Flysystem\AdapterInterface | $adapter | |
\League\Flysystem\Config|array | $config |
getAdapter() : \League\Flysystem\AdapterInterface
Get the Adapter.
adapter
writeStream(string $path, resource $resource, array $config = array()) : boolean
Write a new file using a stream.
string | $path | The path of the new file. |
resource | $resource | The file handle. |
array | $config | An optional configuration array. |
True on success, false on failure.
putStream(string $path, resource $resource, array $config = array()) : boolean
Create a file or update if exists.
string | $path | The path to the file. |
resource | $resource | The file handle. |
array | $config | An optional configuration array. |
True on success, false on failure.
updateStream(string $path, resource $resource, array $config = array()) : boolean
Update an existing file using a stream.
string | $path | The path of the existing file. |
resource | $resource | The file handle. |
array | $config | An optional configuration array. |
True on success, false on failure.
get(string $path, \League\Flysystem\Handler $handler = null) : \League\Flysystem\Handler
Get a file/directory handler.
string | $path | The path to the file. |
\League\Flysystem\Handler | $handler | An optional existing handler to populate. |
Either a file or directory handler.
findPlugin(string $method) : \League\Flysystem\PluginInterface
Find a specific plugin.
string | $method |
invokePlugin(string $method, array $arguments, \League\Flysystem\FilesystemInterface $filesystem) : mixed
Invoke a plugin by method name.
string | $method | |
array | $arguments | |
\League\Flysystem\FilesystemInterface | $filesystem |