Skip to content

AzureFilesystemPlugin

Registers the azure filesystem driver alias and publishes filesystem.disks.azure.* config defaults.

Requires a PSR-18 ClientInterface to already be bound in the container (bring your own HTTP client, same as quioteframework/session-azure).

final class AzureFilesystemPlugin implements PluginInterface

ImplementsPluginInterface
SourceAzureFilesystemPlugin.php
MethodDescription
register(PluginRegistrar $registrar): voidPublishes the filesystem.disks.azure.* defaults, registers the azure driver alias and binds AzureFilesystemAdapter as a singleton.

public function register(PluginRegistrar $registrar): void

Publishes the filesystem.disks.azure.* defaults, registers the azure driver alias and binds AzureFilesystemAdapter as a singleton.

The adapter’s factory reads account name, auth strategy, container, optional endpoint and key prefix from config at resolution time and pulls the PSR-18 client out of the container then, so registering this plugin without an HTTP client bound only fails once the disk is used.

filesystem.disks.azure.auth selects how requests are authorized: shared_key (default, needs account_key), workload_identity (AKS, reads the webhook’s own environment variables), cli (a developer’s az login session) or chain (workload identity, falling back to the CLI). Only shared_key ever reads a storage account key.

ParameterTypeDescription
$registrarPluginRegistrar