Merge pull request #326

This commit is contained in:
symfony-flex-server[bot]
2018-10-06 10:49:27 +00:00
committed by GitHub
3 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
doctrine_phpcr:
# configure the PHPCR session
session:
backend:
type: doctrinedbal
connection: default
caches:
meta: doctrine_cache.providers.phpcr_meta
nodes: doctrine_cache.providers.phpcr_nodes
parameters:
jackalope.check_login_on_server: false
workspace: '%env(PHPCR_WORKSPACE)%'
username: '%env(PHPCR_USER)%'
password: '%env(PHPCR_PASSWORD)%'
# enable the ODM layer
odm:
auto_mapping: true
auto_generate_proxy_classes: true
# add your locale configuration here as described in: https://symfony.com/doc/current/cmf/bundles/phpcr_odm/multilang.html#translation-configuration
doctrine_cache:
providers:
phpcr_meta:
type: file_system
phpcr_nodes:
type: file_system

View File

@@ -0,0 +1,14 @@
{
"bundles": {
"Doctrine\\Bundle\\PHPCRBundle\\DoctrinePHPCRBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
"src/": "%SRC_DIR%/"
},
"env": {
"PHPCR_USER": "admin",
"PHPCR_PASSWORD": "admin",
"PHPCR_WORKSPACE": "default"
}
}