ImageVariantPathResolver
final class ImageVariantPathResolver (View source)
Resolves bounded persistent-original and public-variant paths without making originals public by default
Methods
Resolves the physical filesystem path of the asset's persistent original
Creates the canonical persistent-original reference; callers choose its public or private storage boundary.
Resolves the physical filesystem path of a derived public variant
Resolves the exact public directory owned by one immutable source version.
Resolves a non-public lock path for one deterministic variant.
Creates the public image reference for a derived variant
Details
__construct
__construct(ApplicationContext $context, DirectoryPathGenerator $directories)
No description
originalPath
string
originalPath(ImageAsset $asset)
Resolves the physical filesystem path of the asset's persistent original
originalReference
ImageOriginalReference
originalReference(string $assetId, string $sourceVersion, ImageOriginalStorage $storage, ImageFormat $format, ImageDimensions $dimensions)
Creates the canonical persistent-original reference; callers choose its public or private storage boundary.
variantPath
string
variantPath(ImageAsset $asset, ImageVariantDefinition $definition)
Resolves the physical filesystem path of a derived public variant
variantDirectory
string
variantDirectory(ImageAsset $asset)
Resolves the exact public directory owned by one immutable source version.
variantLockPath
string
variantLockPath(ImageAsset $asset, ImageVariantDefinition $definition)
Resolves a non-public lock path for one deterministic variant.
reference
ImageReference
reference(ImageAsset $asset, ImageVariantDefinition $definition)
Creates the public image reference for a derived variant