Skip to content

Commit

Permalink
[Symfony UX Map] Create recipes for the package and its bridges
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocal committed Jul 20, 2024
1 parent bfef579 commit 0fb2ec6
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 0 deletions.
11 changes: 11 additions & 0 deletions symfony/ux-map-google/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-map-leaflet/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:

Check failure on line 1 in symfony/ux-map/2.19/config/packages/ux_map.yaml

View workflow job for this annotation

GitHub Actions / call-qa / Run checks

"ux_map" entry should be removed as it is empty
# https://symfony.com/bundles/ux-map/current/index.html#available-renderers
# renderer: '%env(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%/"
}
}
9 changes: 9 additions & 0 deletions symfony/ux-map/2.19/post-install.txt
Original file line number Diff line number Diff line change
@@ -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</>

0 comments on commit 0fb2ec6

Please sign in to comment.