Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 225f9ab

Browse files
committed
Merge pull request #653 from symfony-cmf/translation_namespace
Added docmentation for changing the default translation namespace alias
2 parents 41058a0 + 101cc93 commit 225f9ab

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

bundles/phpcr_odm/configuration.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,9 @@ not configure anything here, the ODM services will not be loaded.
451451
auto_generate_proxy_classes: "%kernel.debug%"
452452
proxy_dir: "%kernel.cache_dir%/doctrine/PHPCRProxies"
453453
proxy_namespace: PHPCRProxies
454+
namespaces:
455+
translation:
456+
alias: phpcr_locale
454457
455458
metadata_cache_driver:
456459
type: array
@@ -477,6 +480,10 @@ not configure anything here, the ODM services will not be loaded.
477480
proxy-dir="%kernel.cache_dir%/doctrine/PHPCRProxies"
478481
proxy-namespace="PHPCRProxies"
479482
>
483+
<namespaces>
484+
<translation alias="phpcr_locale" />
485+
</namespaces>
486+
480487
<mappings>
481488
<"name"
482489
mapping="true"
@@ -511,6 +518,11 @@ not configure anything here, the ODM services will not be loaded.
511518
'auto_generate_proxy_classes' => '%kernel.debug%',
512519
'proxy-dir' => '%kernel.cache_dir%/doctrine/PHPCRProxies',
513520
'proxy_namespace' => 'PHPCRProxies',
521+
'namespaces' => array(
522+
'translation' => array(
523+
'alias' => 'phpcr_locale',
524+
),
525+
),
514526
'mappings' => array(
515527
'<name>' => array(
516528
'mapping' => true,
@@ -572,6 +584,13 @@ Change folder where proxy classes are generated.
572584

573585
Change namespace for generated proxy classes.
574586

587+
``namespaces``
588+
""""""""""""""
589+
590+
This configuration section is intended to allow you to customize the
591+
PHPCR namespaces used by PHPCR-ODM. Currently it is only possible to
592+
set the alias used by the translation strategy.
593+
575594
``mappings``
576595
""""""""""""
577596

0 commit comments

Comments
 (0)