Skip to content

Commit 8899269

Browse files
KocalOskarStark
andauthored
[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 <[email protected]> --------- Co-authored-by: Oskar Stark <[email protected]>
1 parent 4b87e51 commit 8899269

File tree

4 files changed

+43
-0
lines changed

4 files changed

+43
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# lazy_image:
2+
# It is recommended to cache the generated BlurHash for performance reasons, to avoid generating it for each request.
3+
# https://symfony.com/bundles/ux-lazy-image/current/index.html#performance-considerations
4+
# cache: cache.lazy_image
5+
6+
framework:
7+
cache:
8+
# pools:
9+
# cache.lazy_image:
10+
# If possible, prefer to use a cache adapter that is not cleared between deployments, like "cache.adapter.redis"
11+
# adapter: 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+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# lazy_image:
2+
# By default, images are fetched 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+
# cache.lazy_image:
15+
# If possible, prefer to use a cache adapter that is not cleared between deployments, like "cache.adapter.redis"
16+
# adapter: 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)