mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 23:26:27 +03:00
Merge pull request #1329 from Kocal/feat/symfony-ux-map
[Symfony UX Map] Create recipes for the package and its bridges
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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(resolve:default::UX_MAP_DSN)%'
|
||||
@@ -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%/"
|
||||
}
|
||||
}
|
||||
@@ -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</>
|
||||
Reference in New Issue
Block a user