GcsFilesystemAdapter
ListableFilesystemInterface over GcsClient (HMAC interop-key REST client, no google/cloud-storage).
The path-to-key mapping, the error translation and the listing live in ListableObjectStoreFilesystemAdapter, shared with the other object-store drivers; this class supplies the client and the provider name that appears in its messages.
Synopsis
Section titled “Synopsis”final readonly class GcsFilesystemAdapter extends ListableObjectStoreFilesystemAdapter
| Extends | ListableObjectStoreFilesystemAdapter |
| Source | GcsFilesystemAdapter.php |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(GcsClient $client, string $objectPrefix = ''): mixed
| Parameter | Type | Description |
|---|---|---|
$client | GcsClient | |
$objectPrefix | string |
Returns mixed
Inherited methods
Section titled “Inherited methods”These come from an ancestor and are documented where they are declared.
| Method | Declared in | Description |
|---|---|---|
delete() | ObjectStoreFilesystemAdapter | Deletes the object under $path. |
exists() | ObjectStoreFilesystemAdapter | Reports whether the store holds an object under $path. |
lastModified() | ObjectStoreFilesystemAdapter | Returns the object’s modification time, taken from its Last-Modified metadata. |
listContents() | ListableObjectStoreFilesystemAdapter | |
read() | ObjectStoreFilesystemAdapter | Returns the body of the object stored under $path. |
size() | ObjectStoreFilesystemAdapter | Returns the object’s size in bytes, taken from its Content-Length metadata. |
write() | ObjectStoreFilesystemAdapter | Stores $contents as the object under $path, replacing any existing object. |