Skip to content

Commit

Permalink
[UX LazyImage] Add initial recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocal committed May 30, 2024
1 parent e0cf960 commit c41b0ba
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
15 changes: 15 additions & 0 deletions symfony/ux-lazy-image/2.17/config/packages/lazy_image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
lazy_image:

Check failure on line 1 in symfony/ux-lazy-image/2.17/config/packages/lazy_image.yaml

View workflow job for this annotation

GitHub Actions / call-qa / Run checks

"lazy_image" entry should be removed as it is empty
# 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'

Check failure on line 6 in symfony/ux-lazy-image/2.17/config/packages/lazy_image.yaml

View workflow job for this annotation

GitHub Actions / call-qa / Run checks

Indendation must be a multiple of 4 spaces
# 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:
# If possible, prefer to use a cache adapter that is not cleared between deployments, like "cache.adapter.redis"
# cache.lazy_image: cache.app
8 changes: 8 additions & 0 deletions symfony/ux-lazy-image/2.17/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"bundles": {
"Symfony\\UX\\LazyImage\\LazyImageBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}

0 comments on commit c41b0ba

Please sign in to comment.