PathPrefixer example

#[Package('core')] class DecoratedAsyncS3Adapter implements FilesystemAdapter, PublicUrlGenerator, ChecksumProvider, TemporaryUrlGenerator
{
    private readonly PathPrefixer $prefixer;

    public function __construct(
        private readonly AsyncAwsS3Adapter $inner,
        private readonly string $bucket,
        private readonly S3Client $client,
        string $prefix
    ) {
        $this->prefixer = new PathPrefixer($prefix);
    }

    public function checksum(string $path, Config $config): string
    {
        return $this->inner->checksum($path$config);
    }

    public function fileExists(string $path): bool
    {
        return $this->inner->fileExists($path);
    }

    
Home | Imprint | This part of the site doesn't use cookies.