$plugins
$plugins : array
Class MountManager.
Proxies methods to Filesystem (@see __call):
$filesystems : array<mixed,\League\Flysystem\FilesystemInterface>
addPlugin(\League\Flysystem\PluginInterface $plugin) : $this
Register a plugin.
\League\Flysystem\PluginInterface | $plugin |
__construct(array<mixed,\League\Flysystem\FilesystemInterface> $filesystems = array())
Constructor.
array<mixed,\League\Flysystem\FilesystemInterface> | $filesystems | [:prefix => Filesystem,] |
mountFilesystems(array<mixed,\League\Flysystem\FilesystemInterface> $filesystems) : $this
Mount filesystems.
array<mixed,\League\Flysystem\FilesystemInterface> | $filesystems | [:prefix => Filesystem,] |
mountFilesystem(string $prefix, \League\Flysystem\FilesystemInterface $filesystem) : $this
Mount filesystems.
string | $prefix | |
\League\Flysystem\FilesystemInterface | $filesystem |
getFilesystem(string $prefix) : \League\Flysystem\FilesystemInterface
Get the filesystem with the corresponding prefix.
string | $prefix |
listContents(string $directory = '', boolean $recursive = false) : array
List contents of a directory.
string | $directory | The directory to list. |
boolean | $recursive | Whether to list recursively. |
write(string $path, string $contents, array $config = array()) : boolean
Write a new file.
string | $path | The path of the new file. |
string | $contents | The file contents. |
array | $config | An optional configuration array. |
True on success, false on failure.
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. |
If $resource is not a file handle.
True on success, false on failure.
update(string $path, string $contents, array $config = array()) : boolean
Update an existing file.
string | $path | The path of the existing file. |
string | $contents | The file contents. |
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. |
If $resource is not a file handle.
True on success, false on failure.
rename(string $path, string $newpath) : boolean
Rename a file.
string | $path | Path to the existing file. |
string | $newpath | The new path of the file. |
Thrown if $newpath exists.
Thrown if $path does not exist.
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. |
Thrown if $resource is not a resource.
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.
getAdapter(mixed $prefix) : \League\Flysystem\AdapterInterface
mixed | $prefix |
None found |
getConfig(mixed $prefix) : \League\Flysystem\Config
mixed | $prefix |
None found |
listFiles(mixed $directory = '', mixed $recursive = false) : array
mixed | $directory | |
mixed | $recursive |
None found |
listPaths(mixed $directory = '', mixed $recursive = false) : array
mixed | $directory | |
mixed | $recursive |
None found |
getWithMetadata(mixed $path, array $metadata) : array
mixed | $path | |
array | $metadata |
None found |
None found |
None found |
None found |
addPlugin(\PluginInterface $plugin) : \League\Flysystem\Filesystem
Register a plugin.
\PluginInterface | $plugin | The plugin to register. |
None found |
findPlugin(string $method) : \League\Flysystem\PluginInterface
Find a specific plugin.
string | $method |
None found |
invokePlugin(string $method, array $arguments, \League\Flysystem\FilesystemInterface $filesystem) : mixed
Invoke a plugin by method name.
string | $method | |
array | $arguments | |
\League\Flysystem\FilesystemInterface | $filesystem |
None found |
getPrefixAndPath(string $path) : array<mixed,string>
string | $path |
[:prefix, :path]
None found |