EventedAdapter
in package
implements
FilesystemAdapter, PublicUrlGenerator
Read onlyYes
FinalYes
Indirect adapter implements a simple pattern that allows extending classes to provide a concrete adapter for any call as well as rewrite the path passed to such calls.
Table of Contents
Interfaces
- FilesystemAdapter
- PublicUrlGenerator
Properties
- $adapter : FilesystemAdapter
- $dispatcher : EventDispatcherInterface
Methods
- __construct() : mixed
- copy() : void
- createDirectory() : void
- delete() : void
- deleteDirectory() : void
- directoryExists() : bool
- fileExists() : bool
- fileSize() : FileAttributes
- lastModified() : FileAttributes
- listContents() : iterable<string|int, mixed>
- mimeType() : FileAttributes
- move() : void
- publicUrl() : string
- read() : string
- readStream() : mixed
- setVisibility() : void
- visibility() : FileAttributes
- write() : void
- writeStream() : void
Properties
$adapter
private
FilesystemAdapter
$adapter
$dispatcher
private
EventDispatcherInterface
$dispatcher
Methods
__construct()
public
__construct(FilesystemAdapter $adapter, EventDispatcherInterface $dispatcher) : mixed
Parameters
- $adapter : FilesystemAdapter
- $dispatcher : EventDispatcherInterface
copy()
public
copy(string $source, string $destination, Config $config) : void
Parameters
- $source : string
- $destination : string
- $config : Config
createDirectory()
public
createDirectory(string $path, Config $config) : void
Parameters
- $path : string
- $config : Config
delete()
public
delete(string $path) : void
Parameters
- $path : string
deleteDirectory()
public
deleteDirectory(string $path) : void
Parameters
- $path : string
directoryExists()
public
directoryExists(string $path) : bool
Parameters
- $path : string
Return values
boolfileExists()
public
fileExists(string $path) : bool
Parameters
- $path : string
Return values
boolfileSize()
public
fileSize(string $path) : FileAttributes
Parameters
- $path : string
Return values
FileAttributeslastModified()
public
lastModified(string $path) : FileAttributes
Parameters
- $path : string
Return values
FileAttributeslistContents()
public
listContents(string $path, bool $deep) : iterable<string|int, mixed>
Parameters
- $path : string
- $deep : bool
Return values
iterable<string|int, mixed>mimeType()
public
mimeType(string $path) : FileAttributes
Parameters
- $path : string
Return values
FileAttributesmove()
public
move(string $source, string $destination, Config $config) : void
Parameters
- $source : string
- $destination : string
- $config : Config
publicUrl()
public
publicUrl(string $path, Config $config) : string
Parameters
- $path : string
- $config : Config
Return values
stringread()
public
read(string $path) : string
Parameters
- $path : string
Return values
stringreadStream()
public
readStream(string $path) : mixed
Parameters
- $path : string
setVisibility()
public
setVisibility(string $path, string $visibility) : void
Parameters
- $path : string
- $visibility : string
visibility()
public
visibility(string $path) : FileAttributes
Parameters
- $path : string
Return values
FileAttributeswrite()
public
write(string $path, string $contents, Config $config) : void
Parameters
- $path : string
- $contents : string
- $config : Config
writeStream()
public
writeStream(string $path, mixed $contents, Config $config) : void
Parameters
- $path : string
- $contents : mixed
- $config : Config