mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-12 07:36:34 +03:00
Merge pull request #484
This commit is contained in:
@@ -3,9 +3,9 @@ doctrine_mongodb:
|
||||
auto_generate_hydrator_classes: '%kernel.debug%'
|
||||
connections:
|
||||
default:
|
||||
server: '%env(MONGODB_URL)%'
|
||||
server: '%env(resolve:MONGODB_URL)%'
|
||||
options: {}
|
||||
default_database: '%env(MONGODB_DB)%'
|
||||
default_database: '%env(resolve:MONGODB_DB)%'
|
||||
document_managers:
|
||||
default:
|
||||
auto_mapping: true
|
||||
@@ -14,5 +14,5 @@ doctrine_mongodb:
|
||||
is_bundle: false
|
||||
type: annotation
|
||||
dir: '%kernel.project_dir%/src/Document'
|
||||
prefix: App\Document\
|
||||
prefix: 'App\Document'
|
||||
alias: App
|
||||
|
||||
@@ -6,6 +6,10 @@
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"container": {
|
||||
"env(MONGODB_URL)": "",
|
||||
"env(MONGODB_DB)": ""
|
||||
},
|
||||
"env": {
|
||||
"MONGODB_URL": "mongodb://localhost:27017",
|
||||
"MONGODB_DB": "symfony"
|
||||
|
||||
Reference in New Issue
Block a user