[Symfony UX Map] Create recipes for the package and its bridges

This commit is contained in:
Hugo Alliaume
2024-08-12 21:35:46 +02:00
parent b468bb5491
commit c307da367e
5 changed files with 44 additions and 0 deletions
+11
View File
@@ -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"
}
}
+10
View File
@@ -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"
}
}
@@ -0,0 +1,3 @@
ux_map:
# https://symfony.com/bundles/ux-map/current/index.html#available-renderers
# renderer: '%env(UX_MAP_DSN)%'
+11
View File
@@ -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%/"
}
}
+9
View File
@@ -0,0 +1,9 @@
* You're near ready to use the Symfony UX Map component. You can create your first map
by using the <info>Map</info> 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 <comment>https://symfony.com/bundles/ux-map/current/index.html#available-renderers</>.
2. Uncomment the <info># renderer: '%env(UX_MAP_DSN)%'</> line
in <comment>config/packages/ux_map.yaml</>;
* <fg=blue>Read</> the documentation at <comment>https://symfony.com/bundles/ux-map/current/index.html</>