Skip to content

Commit c41b0ba

Browse files
committed
[UX LazyImage] Add initial recipe
1 parent e0cf960 commit c41b0ba

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
lazy_image:
2+
# By default, images are fetch through "file_get_contents" function, but you can use your own implementation
3+
# with an invokable service or a callable.
4+
# https://symfony.com/bundles/ux-lazy-image/current/index.html#customizing-images-fetching
5+
# fetch_image_content: 'App\BlurHash\FetchImageContent'
6+
7+
# It is recommended to cache the generated BlurHash for performance reasons, to avoid generating it for each request.
8+
# https://symfony.com/bundles/ux-lazy-image/current/index.html#performance-considerations
9+
# cache: cache.lazy_image
10+
11+
framework:
12+
cache:
13+
# pools:
14+
# If possible, prefer to use a cache adapter that is not cleared between deployments, like "cache.adapter.redis"
15+
# cache.lazy_image: cache.app
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"bundles": {
3+
"Symfony\\UX\\LazyImage\\LazyImageBundle": ["all"]
4+
},
5+
"copy-from-recipe": {
6+
"config/": "%CONFIG_DIR%/"
7+
}
8+
}

0 commit comments

Comments
 (0)