mirror of
https://github.com/symfony/recipes.git
synced 2026-09-17 10:06:28 +03:00
Create Flex endpoint
This commit is contained in:
+38
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"aliases": {
|
||||
"ux-cloudflare-image": "symfony/ux-cloudflare-image",
|
||||
"ux-glide-image": "symfony/ux-glide-image",
|
||||
"ux-image": "symfony/ux-image",
|
||||
"ux-keycdn-image": "symfony/ux-keycdn-image",
|
||||
"uxcloudflareimage": "symfony/ux-cloudflare-image",
|
||||
"uxglideimage": "symfony/ux-glide-image",
|
||||
"uximage": "symfony/ux-image",
|
||||
"uxkeycdnimage": "symfony/ux-keycdn-image"
|
||||
},
|
||||
"recipes": {
|
||||
"symfony/ux-cloudflare-image": [
|
||||
"3.6"
|
||||
],
|
||||
"symfony/ux-glide-image": [
|
||||
"3.6"
|
||||
],
|
||||
"symfony/ux-image": [
|
||||
"3.6"
|
||||
],
|
||||
"symfony/ux-keycdn-image": [
|
||||
"3.6"
|
||||
]
|
||||
},
|
||||
"recipe-conflicts": [],
|
||||
"versions": [],
|
||||
"branch": "main",
|
||||
"is_contrib": false,
|
||||
"_links": {
|
||||
"repository": "github.com/symfony/recipes",
|
||||
"origin_template": "{package}:{version}@github.com/symfony/recipes:main",
|
||||
"recipe_template": "https://raw.githubusercontent.com/symfony/recipes/flex/pull-1571/{package_dotted}.{version}.json",
|
||||
"recipe_template_relative": "{package_dotted}.{version}.json",
|
||||
"archived_recipes_template": "https://raw.githubusercontent.com/symfony/recipes/flex/pull-1571/archived/{package_dotted}/{ref}.json",
|
||||
"archived_recipes_template_relative": "archived/{package_dotted}/{ref}.json"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/ux-cloudflare-image": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "Options available at https://github.com/symfony/ux/blob/3.x/src/Image/src/Bridge/Cloudflare/README.md",
|
||||
"#2": "",
|
||||
"UX_IMAGE_DSN": "cloudflare://cdn.example.com"
|
||||
},
|
||||
"post-install-output": [
|
||||
" * Set the host in <info>UX_IMAGE_DSN</info> to the domain your Cloudflare zone proxies, the one",
|
||||
" your original images are served from.",
|
||||
"",
|
||||
" * Image transformations must be enabled on that zone before this works.",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://github.com/symfony/ux/blob/3.x/src/Image/src/Bridge/Cloudflare/README.md</>"
|
||||
]
|
||||
},
|
||||
"files": [],
|
||||
"ref": "5bcb764518a3012239b9c89796092b47cb75e75c"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/ux-glide-image": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "Options available at https://github.com/symfony/ux/blob/3.x/src/Image/src/Bridge/Glide/README.md",
|
||||
"#2": "The path segment below (/images) must match the prefix in config/routes/ux_image_glide.yaml",
|
||||
"#3": "",
|
||||
"UX_IMAGE_DSN": "glide://default/images?source=%kernel.project_dir%/public/uploads&cache=%kernel.project_dir%/var/glide-cache"
|
||||
},
|
||||
"post-install-output": [
|
||||
" * Resizing happens in your application, not on a remote service.",
|
||||
"",
|
||||
" * The recipe added <info>config/routes/ux_image_glide.yaml</info>; its <info>prefix</info> must match the path",
|
||||
" segment of <info>UX_IMAGE_DSN</info>, or generated URLs won't match the route.",
|
||||
"",
|
||||
" * Set a <info>sign_key</info> in the DSN before going to production, or the route will resize and",
|
||||
" cache whatever anyone asks for.",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://github.com/symfony/ux/blob/3.x/src/Image/src/Bridge/Glide/README.md</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/routes/ux_image_glide.yaml": {
|
||||
"contents": [
|
||||
"ux_image_glide:",
|
||||
" resource: '@UXImageBundle/config/routes/glide.php'",
|
||||
" # must match the path segment of UX_IMAGE_DSN",
|
||||
" prefix: /images",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "d3696d12da8b6a5fd52b9b04a1b50edcb2ebbf4b"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/ux-image": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\UX\\Image\\UXImageBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"post-install-output": [
|
||||
" * This component is installed but renders nothing on its own. It needs one provider,",
|
||||
" installed as a separate package: <info>symfony/ux-glide-image</info> for local use with no CDN,",
|
||||
" <info>symfony/ux-cloudflare-image</info>, or <info>symfony/ux-keycdn-image</info>.",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://symfony.com/bundles/ux-image/current/index.html</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/ux_image.yaml": {
|
||||
"contents": [
|
||||
"ux_image:",
|
||||
" # https://symfony.com/bundles/ux-image/current/index.html#the-provider-dsn",
|
||||
" provider: '%env(resolve:default::UX_IMAGE_DSN)%'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "73cbf0c070051852b24d9fa6f49b7ee35750fe28"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/ux-keycdn-image": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "Options available at https://github.com/symfony/ux/blob/3.x/src/Image/src/Bridge/KeyCdn/README.md",
|
||||
"#2": "",
|
||||
"UX_IMAGE_DSN": "keycdn://myzone.kxcdn.com"
|
||||
},
|
||||
"post-install-output": [
|
||||
" * Set the host in <info>UX_IMAGE_DSN</info> to your KeyCDN zone.",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://github.com/symfony/ux/blob/3.x/src/Image/src/Bridge/KeyCdn/README.md</>"
|
||||
]
|
||||
},
|
||||
"files": [],
|
||||
"ref": "ba30f4155315178fe271782abdbc11aea36d2118"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user