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:
Jérôme Tamarelle
2025-08-26 18:44:06 +02:00
committed by GitHub
parent 724ced0251
commit 2dd9228ee0
8 changed files with 16 additions and 16 deletions

View File

@@ -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:

View File

@@ -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"
}
}

View File

@@ -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:

View File

@@ -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": {

View File

@@ -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:

View File

@@ -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": [

View File

@@ -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:

View File

@@ -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": [