Skip to content

Commit

Permalink
Merge pull request #1329 from Kocal/feat/symfony-ux-map
Browse files Browse the repository at this point in the history
[Symfony UX Map] Create recipes for the package and its bridges
  • Loading branch information
fabpot authored Aug 12, 2024
2 parents b468bb5 + 37f852e commit d618953
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 0 deletions.
11 changes: 11 additions & 0 deletions symfony/ux-google-map/2.19/manifest.json
Original file line number Diff line number Diff line change
@@ -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 changes: 10 additions & 0 deletions symfony/ux-leaflet-map/2.19/manifest.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
3 changes: 3 additions & 0 deletions symfony/ux-map/2.19/config/packages/ux_map.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ux_map:
# https://symfony.com/bundles/ux-map/current/index.html#available-renderers
renderer: '%env(resolve:default::UX_MAP_DSN)%'
11 changes: 11 additions & 0 deletions symfony/ux-map/2.19/manifest.json
Original file line number Diff line number Diff line change
@@ -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%/"
}
}
6 changes: 6 additions & 0 deletions symfony/ux-map/2.19/post-install.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
* 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
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</>.

* <fg=blue>Read</> the documentation at <comment>https://symfony.com/bundles/ux-map/current/index.html</>

0 comments on commit d618953

Please sign in to comment.