From 8899269ff6d24ddce4c08f650ca5d4f14e459303 Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Sun, 2 Jun 2024 17:51:09 +0200 Subject: [PATCH] [UX LazyImage] Add initial recipe (#1319) * [UX LazyImage] Add initial recipe * Update symfony/ux-lazy-image/2.18/config/packages/lazy_image.yaml Co-authored-by: Oskar Stark --------- Co-authored-by: Oskar Stark --- .../2.17/config/packages/lazy_image.yaml | 11 +++++++++++ symfony/ux-lazy-image/2.17/manifest.json | 8 ++++++++ .../2.18/config/packages/lazy_image.yaml | 16 ++++++++++++++++ symfony/ux-lazy-image/2.18/manifest.json | 8 ++++++++ 4 files changed, 43 insertions(+) create mode 100644 symfony/ux-lazy-image/2.17/config/packages/lazy_image.yaml create mode 100644 symfony/ux-lazy-image/2.17/manifest.json create mode 100644 symfony/ux-lazy-image/2.18/config/packages/lazy_image.yaml create mode 100644 symfony/ux-lazy-image/2.18/manifest.json diff --git a/symfony/ux-lazy-image/2.17/config/packages/lazy_image.yaml b/symfony/ux-lazy-image/2.17/config/packages/lazy_image.yaml new file mode 100644 index 000000000..c701d01f6 --- /dev/null +++ b/symfony/ux-lazy-image/2.17/config/packages/lazy_image.yaml @@ -0,0 +1,11 @@ +# lazy_image: + # It is recommended to cache the generated BlurHash for performance reasons, to avoid generating it for each request. + # https://symfony.com/bundles/ux-lazy-image/current/index.html#performance-considerations + # cache: cache.lazy_image + +framework: + cache: + # pools: + # cache.lazy_image: + # If possible, prefer to use a cache adapter that is not cleared between deployments, like "cache.adapter.redis" + # adapter: cache.app diff --git a/symfony/ux-lazy-image/2.17/manifest.json b/symfony/ux-lazy-image/2.17/manifest.json new file mode 100644 index 000000000..e10d0f28e --- /dev/null +++ b/symfony/ux-lazy-image/2.17/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Symfony\\UX\\LazyImage\\LazyImageBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} diff --git a/symfony/ux-lazy-image/2.18/config/packages/lazy_image.yaml b/symfony/ux-lazy-image/2.18/config/packages/lazy_image.yaml new file mode 100644 index 000000000..0ea8aa9b6 --- /dev/null +++ b/symfony/ux-lazy-image/2.18/config/packages/lazy_image.yaml @@ -0,0 +1,16 @@ +# lazy_image: + # By default, images are fetched through "file_get_contents" function, but you can use your own implementation + # with an invokable service or a callable. + # https://symfony.com/bundles/ux-lazy-image/current/index.html#customizing-images-fetching + # fetch_image_content: 'App\BlurHash\FetchImageContent' + + # It is recommended to cache the generated BlurHash for performance reasons, to avoid generating it for each request. + # https://symfony.com/bundles/ux-lazy-image/current/index.html#performance-considerations + # cache: cache.lazy_image + +framework: + cache: + # pools: + # cache.lazy_image: + # If possible, prefer to use a cache adapter that is not cleared between deployments, like "cache.adapter.redis" + # adapter: cache.app diff --git a/symfony/ux-lazy-image/2.18/manifest.json b/symfony/ux-lazy-image/2.18/manifest.json new file mode 100644 index 000000000..e10d0f28e --- /dev/null +++ b/symfony/ux-lazy-image/2.18/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Symfony\\UX\\LazyImage\\LazyImageBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +}