From 7b7504cf2d0bae474850ea1a9bc74fbf3adde20f Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Thu, 30 May 2024 12:04:22 +0200 Subject: [PATCH 1/2] [UX LazyImage] Add initial recipe --- .../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..f960a60fb --- /dev/null +++ b/symfony/ux-lazy-image/2.18/config/packages/lazy_image.yaml @@ -0,0 +1,16 @@ +# lazy_image: + # By default, images are fetch 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%/" + } +} From 598bde16f4f3ce382eafa9cc2a7764d7457e8c28 Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Fri, 31 May 2024 00:16:27 +0200 Subject: [PATCH 2/2] Update symfony/ux-lazy-image/2.18/config/packages/lazy_image.yaml Co-authored-by: Oskar Stark --- symfony/ux-lazy-image/2.18/config/packages/lazy_image.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 index f960a60fb..0ea8aa9b6 100644 --- a/symfony/ux-lazy-image/2.18/config/packages/lazy_image.yaml +++ b/symfony/ux-lazy-image/2.18/config/packages/lazy_image.yaml @@ -1,5 +1,5 @@ # lazy_image: - # By default, images are fetch through "file_get_contents" function, but you can use your own implementation + # 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'