Skip to content

Commit c307da3

Browse files
committed
[Symfony UX Map] Create recipes for the package and its bridges
1 parent b468bb5 commit c307da3

File tree

5 files changed

+44
-0
lines changed

5 files changed

+44
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"conflict": {
3+
"symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0"
4+
},
5+
"env": {
6+
"#1": "Options available at https://github.com/symfony/symfony-ux/blob/2.x/src/Map/src/Bridge/Google/README.md",
7+
"#2": "",
8+
"GOOGLE_MAPS_API_KEY": "# Get your API key at https://developers.google.com/maps/documentation/javascript/get-api-key",
9+
"UX_MAP_DSN": "google://%env(GOOGLE_MAPS_API_KEY)%@default"
10+
}
11+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"conflict": {
3+
"symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0"
4+
},
5+
"env": {
6+
"#1": "Options available at https://github.com/symfony/symfony-ux/blob/2.x/src/Map/src/Bridge/Leaflet/README.md",
7+
"#2": "",
8+
"UX_MAP_DSN": "leaflet://default"
9+
}
10+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ux_map:
2+
# https://symfony.com/bundles/ux-map/current/index.html#available-renderers
3+
# renderer: '%env(UX_MAP_DSN)%'

symfony/ux-map/2.19/manifest.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"bundles": {
3+
"Symfony\\UX\\Map\\UXMapBundle": ["all"]
4+
},
5+
"conflict": {
6+
"symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0"
7+
},
8+
"copy-from-recipe": {
9+
"config/": "%CONFIG_DIR%/"
10+
}
11+
}

symfony/ux-map/2.19/post-install.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
* You're near ready to use the Symfony UX Map component. You can create your first map
2+
by using the <info>Map</info> class, but you will not be able to render it yet until you:
3+
4+
1. Install the Symfony UX Map Bridge you want to use, they can be
5+
found at <comment>https://symfony.com/bundles/ux-map/current/index.html#available-renderers</>.
6+
2. Uncomment the <info># renderer: '%env(UX_MAP_DSN)%'</> line
7+
in <comment>config/packages/ux_map.yaml</>;
8+
9+
* <fg=blue>Read</> the documentation at <comment>https://symfony.com/bundles/ux-map/current/index.html</>

0 commit comments

Comments
 (0)