From c307da367e6c4bdd730660bfac3e763a0b3fdca1 Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Sat, 20 Jul 2024 11:09:20 +0200 Subject: [PATCH 1/3] [Symfony UX Map] Create recipes for the package and its bridges --- symfony/ux-map-google/2.19/manifest.json | 11 +++++++++++ symfony/ux-map-leaflet/2.19/manifest.json | 10 ++++++++++ symfony/ux-map/2.19/config/packages/ux_map.yaml | 3 +++ symfony/ux-map/2.19/manifest.json | 11 +++++++++++ symfony/ux-map/2.19/post-install.txt | 9 +++++++++ 5 files changed, 44 insertions(+) create mode 100644 symfony/ux-map-google/2.19/manifest.json create mode 100644 symfony/ux-map-leaflet/2.19/manifest.json create mode 100644 symfony/ux-map/2.19/config/packages/ux_map.yaml create mode 100644 symfony/ux-map/2.19/manifest.json create mode 100644 symfony/ux-map/2.19/post-install.txt diff --git a/symfony/ux-map-google/2.19/manifest.json b/symfony/ux-map-google/2.19/manifest.json new file mode 100644 index 000000000..3a7bc437f --- /dev/null +++ b/symfony/ux-map-google/2.19/manifest.json @@ -0,0 +1,11 @@ +{ + "conflict": { + "symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0" + }, + "env": { + "#1": "Options available at https://github.com/symfony/symfony-ux/blob/2.x/src/Map/src/Bridge/Google/README.md", + "#2": "", + "GOOGLE_MAPS_API_KEY": "# Get your API key at https://developers.google.com/maps/documentation/javascript/get-api-key", + "UX_MAP_DSN": "google://%env(GOOGLE_MAPS_API_KEY)%@default" + } +} diff --git a/symfony/ux-map-leaflet/2.19/manifest.json b/symfony/ux-map-leaflet/2.19/manifest.json new file mode 100644 index 000000000..39420ee47 --- /dev/null +++ b/symfony/ux-map-leaflet/2.19/manifest.json @@ -0,0 +1,10 @@ +{ + "conflict": { + "symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0" + }, + "env": { + "#1": "Options available at https://github.com/symfony/symfony-ux/blob/2.x/src/Map/src/Bridge/Leaflet/README.md", + "#2": "", + "UX_MAP_DSN": "leaflet://default" + } +} diff --git a/symfony/ux-map/2.19/config/packages/ux_map.yaml b/symfony/ux-map/2.19/config/packages/ux_map.yaml new file mode 100644 index 000000000..5e5bd287c --- /dev/null +++ b/symfony/ux-map/2.19/config/packages/ux_map.yaml @@ -0,0 +1,3 @@ +ux_map: + # https://symfony.com/bundles/ux-map/current/index.html#available-renderers + # renderer: '%env(UX_MAP_DSN)%' diff --git a/symfony/ux-map/2.19/manifest.json b/symfony/ux-map/2.19/manifest.json new file mode 100644 index 000000000..22f6b800b --- /dev/null +++ b/symfony/ux-map/2.19/manifest.json @@ -0,0 +1,11 @@ +{ + "bundles": { + "Symfony\\UX\\Map\\UXMapBundle": ["all"] + }, + "conflict": { + "symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0" + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} diff --git a/symfony/ux-map/2.19/post-install.txt b/symfony/ux-map/2.19/post-install.txt new file mode 100644 index 000000000..439fd90e7 --- /dev/null +++ b/symfony/ux-map/2.19/post-install.txt @@ -0,0 +1,9 @@ + * You're near ready to use the Symfony UX Map component. You can create your first map + by using the Map class, but you will not be able to render it yet until you: + + 1. Install the Symfony UX Map Bridge you want to use, they can be + found at https://symfony.com/bundles/ux-map/current/index.html#available-renderers. + 2. Uncomment the # renderer: '%env(UX_MAP_DSN)%' line + in config/packages/ux_map.yaml; + + * Read the documentation at https://symfony.com/bundles/ux-map/current/index.html From 7beee0a64e70548c8a7eefa70971076960dba7d5 Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Wed, 7 Aug 2024 16:49:49 +0200 Subject: [PATCH 2/3] chore: rename ux-map bridges package --- symfony/{ux-map-google => ux-google-map}/2.19/manifest.json | 0 symfony/{ux-map-leaflet => ux-leaflet-map}/2.19/manifest.json | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename symfony/{ux-map-google => ux-google-map}/2.19/manifest.json (100%) rename symfony/{ux-map-leaflet => ux-leaflet-map}/2.19/manifest.json (100%) diff --git a/symfony/ux-map-google/2.19/manifest.json b/symfony/ux-google-map/2.19/manifest.json similarity index 100% rename from symfony/ux-map-google/2.19/manifest.json rename to symfony/ux-google-map/2.19/manifest.json diff --git a/symfony/ux-map-leaflet/2.19/manifest.json b/symfony/ux-leaflet-map/2.19/manifest.json similarity index 100% rename from symfony/ux-map-leaflet/2.19/manifest.json rename to symfony/ux-leaflet-map/2.19/manifest.json From 37f852e9c28ec2eb403f8ca14fdb67c249fe2a06 Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Wed, 7 Aug 2024 16:53:08 +0200 Subject: [PATCH 3/3] =?UTF-8?q?[Map]=C2=A0Specify=20"renderer"=20option,?= =?UTF-8?q?=20even=20if=20empty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- symfony/ux-map/2.19/config/packages/ux_map.yaml | 2 +- symfony/ux-map/2.19/post-install.txt | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/symfony/ux-map/2.19/config/packages/ux_map.yaml b/symfony/ux-map/2.19/config/packages/ux_map.yaml index 5e5bd287c..ce0f0c75f 100644 --- a/symfony/ux-map/2.19/config/packages/ux_map.yaml +++ b/symfony/ux-map/2.19/config/packages/ux_map.yaml @@ -1,3 +1,3 @@ ux_map: # https://symfony.com/bundles/ux-map/current/index.html#available-renderers - # renderer: '%env(UX_MAP_DSN)%' + renderer: '%env(resolve:default::UX_MAP_DSN)%' diff --git a/symfony/ux-map/2.19/post-install.txt b/symfony/ux-map/2.19/post-install.txt index 439fd90e7..814b7c24c 100644 --- a/symfony/ux-map/2.19/post-install.txt +++ b/symfony/ux-map/2.19/post-install.txt @@ -1,9 +1,6 @@ * You're near ready to use the Symfony UX Map component. You can create your first map - by using the Map class, but you will not be able to render it yet until you: - - 1. Install the Symfony UX Map Bridge you want to use, they can be - found at https://symfony.com/bundles/ux-map/current/index.html#available-renderers. - 2. Uncomment the # renderer: '%env(UX_MAP_DSN)%' line - in config/packages/ux_map.yaml; + by using the Map class, but you will not be able to render it yet until you + install the Symfony UX Map Bridge you want to use, they can be found at + https://symfony.com/bundles/ux-map/current/index.html#available-renderers. * Read the documentation at https://symfony.com/bundles/ux-map/current/index.html