mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-11 15:16:55 +03:00
Add DoctrineMongoDBBundle recipe
This commit is contained in:
committed by
Fabien Potencier
parent
27f70e8f29
commit
2c5799ffd4
@@ -0,0 +1,17 @@
|
||||
doctrine_mongodb:
|
||||
auto_generate_proxy_classes: '%kernel.debug%'
|
||||
auto_generate_hydrator_classes: '%kernel.debug%'
|
||||
connections:
|
||||
default:
|
||||
server: '%env(MONGODB_URL)%'
|
||||
options: {}
|
||||
document_managers:
|
||||
default:
|
||||
auto_mapping: true
|
||||
mappings:
|
||||
App:
|
||||
is_bundle: false
|
||||
type: annotation
|
||||
dir: '%kernel.project_dir%/src/Document'
|
||||
prefix: App\Document\
|
||||
alias: App
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\MongoDBBundle\\DoctrineMongoDBBundle": ["all"]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"etc/": "%ETC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"MONGODB_URL": "mongodb://localhost:27017/symfony"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user