This cache resolver adds a urldecode feature on the filepath to handle files uploaded with artgris.
Install with composer :
composer require umanit/liip-imagine-artgris-cache-resolver-bundle
Register the bundle to your config/bundles.php :
<?php
return [
// ...
Umanit\LiipImagineArtgrisCacheResolverBundle\UmanitLiipImagineArtgrisCacheResolverBundle::class => ['all' => true],
];
Make sure to define the LIIP_IMAGINE_ROOT
env var in your Symfony .env
# Example :
LIIP_IMAGINE_ROOT=%kernel.project_dir%/public
Use this cache resolver in your Liip Imagine configuration :
liip_imagine:
cache: umanit_artgris_resolver
and remove the default resolver configuration if it exists :
liip_imagine:
resolvers: # this config is not needed anymore
default:
web_path:
# ...