umanit/liip-imagine-artgris-cache-resolver-bundle

Liip Imagine cache resolver for artgris uploaded images

1.0.4 2022-07-22 08:52 UTC

This package is auto-updated.

Last update: 2024-11-22 13:28:42 UTC


README

This cache resolver adds a urldecode feature on the filepath to handle files uploaded with artgris.

Install

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:
                # ...