mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-03-23 16:22:19 +01:00
Rename MONGODB_URL to MONGODB_URI (#1851)
This is more correct and the way it is documented https://www.mongodb.com/docs/manual/reference/connection-string/#standard-connection-string-format
This commit is contained in:
@@ -3,7 +3,7 @@ doctrine_mongodb:
|
||||
auto_generate_hydrator_classes: true
|
||||
connections:
|
||||
default:
|
||||
server: '%env(resolve:MONGODB_URL)%'
|
||||
server: '%env(resolve:MONGODB_URI)%'
|
||||
options: {}
|
||||
default_database: '%env(resolve:MONGODB_DB)%'
|
||||
document_managers:
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"container": {
|
||||
"env(MONGODB_URL)": "",
|
||||
"env(MONGODB_URI)": "",
|
||||
"env(MONGODB_DB)": ""
|
||||
},
|
||||
"env": {
|
||||
"MONGODB_URL": "mongodb://localhost:27017",
|
||||
"MONGODB_URI": "mongodb://localhost:27017",
|
||||
"MONGODB_DB": "symfony"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ doctrine_mongodb:
|
||||
auto_generate_hydrator_classes: true
|
||||
connections:
|
||||
default:
|
||||
server: '%env(resolve:MONGODB_URL)%'
|
||||
server: '%env(resolve:MONGODB_URI)%'
|
||||
options: {}
|
||||
default_database: '%env(resolve:MONGODB_DB)%'
|
||||
document_managers:
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"container": {
|
||||
"env(MONGODB_URL)": "",
|
||||
"env(MONGODB_URI)": "",
|
||||
"env(MONGODB_DB)": ""
|
||||
},
|
||||
"env": {
|
||||
"MONGODB_URL": "mongodb://localhost:27017",
|
||||
"MONGODB_URI": "mongodb://localhost:27017",
|
||||
"MONGODB_DB": "symfony"
|
||||
},
|
||||
"conflict": {
|
||||
|
||||
@@ -3,7 +3,7 @@ doctrine_mongodb:
|
||||
auto_generate_hydrator_classes: true
|
||||
connections:
|
||||
default:
|
||||
server: '%env(resolve:MONGODB_URL)%'
|
||||
server: '%env(resolve:MONGODB_URI)%'
|
||||
options: {}
|
||||
default_database: '%env(resolve:MONGODB_DB)%'
|
||||
document_managers:
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"container": {
|
||||
"env(MONGODB_URL)": "",
|
||||
"env(MONGODB_URI)": "",
|
||||
"env(MONGODB_DB)": ""
|
||||
},
|
||||
"env": {
|
||||
"#1": "Format described at https://www.mongodb.com/docs/php-library/current/connect/connection-options/",
|
||||
"#2": "MONGODB_URL=\"mongodb://username:password@localhost:27017/?authSource=auth-db\"",
|
||||
"#3": "MONGODB_URL=\"mongodb+srv://username:password@YOUR_CLUSTER_NAME.YOUR_HASH.mongodb.net/?retryWrites=true&w=majority\"",
|
||||
"MONGODB_URL": "mongodb://localhost:27017",
|
||||
"#2": "MONGODB_URI=\"mongodb://username:password@localhost:27017/?authSource=auth-db\"",
|
||||
"#3": "MONGODB_URI=\"mongodb+srv://username:password@YOUR_CLUSTER_NAME.YOUR_HASH.mongodb.net/?retryWrites=true&w=majority\"",
|
||||
"MONGODB_URI": "mongodb://localhost:27017",
|
||||
"MONGODB_DB": "symfony"
|
||||
},
|
||||
"dockerfile": [
|
||||
|
||||
@@ -3,7 +3,7 @@ doctrine_mongodb:
|
||||
auto_generate_hydrator_classes: true
|
||||
connections:
|
||||
default:
|
||||
server: '%env(resolve:MONGODB_URL)%'
|
||||
server: '%env(resolve:MONGODB_URI)%'
|
||||
options: {}
|
||||
default_database: '%env(resolve:MONGODB_DB)%'
|
||||
document_managers:
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"container": {
|
||||
"env(MONGODB_URL)": "",
|
||||
"env(MONGODB_URI)": "",
|
||||
"env(MONGODB_DB)": ""
|
||||
},
|
||||
"env": {
|
||||
"#1": "Format described at https://www.mongodb.com/docs/php-library/current/connect/connection-options/",
|
||||
"#2": "MONGODB_URL=\"mongodb://username:password@localhost:27017/?authSource=auth-db\"",
|
||||
"#3": "MONGODB_URL=\"mongodb+srv://username:password@YOUR_CLUSTER_NAME.YOUR_HASH.mongodb.net/?retryWrites=true&w=majority\"",
|
||||
"MONGODB_URL": "mongodb://localhost:27017",
|
||||
"#2": "MONGODB_URI=\"mongodb://username:password@localhost:27017/?authSource=auth-db\"",
|
||||
"#3": "MONGODB_URI=\"mongodb+srv://username:password@YOUR_CLUSTER_NAME.YOUR_HASH.mongodb.net/?retryWrites=true&w=majority\"",
|
||||
"MONGODB_URI": "mongodb://localhost:27017",
|
||||
"MONGODB_DB": "symfony"
|
||||
},
|
||||
"dockerfile": [
|
||||
|
||||
Reference in New Issue
Block a user