LiipImagineBundle icon indicating copy to clipboard operation
LiipImagineBundle copied to clipboard

`AwsS3ResolverFactory` only supports configuring Doctrine cache resolver

Open mbabker opened this issue 9 months ago • 2 comments

If configuring the aws_s3 resolver, the factory only supports configuring the cache using the deprecated CacheResolver and liip_imagine.cache.resolver.prototype.cache service. It should be possible to configure its cache using the newer PsrCacheResolver and liip_imagine.cache.resolver.prototype.psr_cache service.

mbabker avatar Feb 26 '25 16:02 mbabker

could you use the flysystem adapter for s3? for the next major version of this bundle, the vision is to get rid of custom resolver implementations in favor of flysystem. if that is not possible, a pull request to make the s3 resolver (or the factory) also support the psr cache resolver is welcome.

dbu avatar Feb 27 '25 10:02 dbu

I'm not actually using this but it was one of those things where I was poking around at the code and noticed the config was still using the deprecated API without supporting the replacement.

mbabker avatar Feb 27 '25 12:02 mbabker