AzureFilesystemAdapter
ListableFilesystemInterface over AzureBlobClient, against a fixed container.
Azure takes the container per call where S3 and GCS bind the bucket to the client, so the client is wrapped in an AzureBlobContainerClient that binds it. Everything after that, the path-to-key mapping, the error translation, container creation on first write, the listing, is the shared behaviour in ListableObjectStoreFilesystemAdapter and the container facade.
Synopsis
Section titled “Synopsis”final readonly class AzureFilesystemAdapter extends ListableObjectStoreFilesystemAdapter
| Extends | ListableObjectStoreFilesystemAdapter |
| Source | AzureFilesystemAdapter.php |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(AzureBlobClient $client, string $container, string $keyPrefix = ''): mixed
| Parameter | Type | Description |
|---|---|---|
$client | AzureBlobClient | |
$container | string | |
$keyPrefix | 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. |