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

Commit 33e70d1

Browse files
committed
typo fixes discovered while using examples for configuration tests
1 parent 3482501 commit 33e70d1

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

bundles/phpcr_odm.rst

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,10 @@ as well as some jackrabbit-specific options:
226226
'session' => array(
227227
'backend' => array(
228228
'type' => 'jackrabbit',
229-
'url' => 'http://localhost:8080/server/'
229+
'url' => 'http://localhost:8080/server/',
230230
'parameters' => array(
231-
'jackalope.default_header': 'X-ID: %serverid%',
232-
'jackalope.jackrabbit_expect': true,
231+
'jackalope.default_header' => 'X-ID: %serverid%',
232+
'jackalope.jackrabbit_expect' => true,
233233
),
234234
),
235235
),
@@ -318,7 +318,7 @@ transactions):
318318
'nodes' => 'liip_doctrine_cache.ns.nodes'
319319
),
320320
'parameters' => array(
321-
'jackalope.disable_transactions'=false,
321+
'jackalope.disable_transactions' => false,
322322
),
323323
),
324324
),
@@ -389,6 +389,7 @@ The session backend configuration looks as follows:
389389
session:
390390
backend:
391391
type: midgard2
392+
config: /path/to/midgard-config.ini
392393
db_type: MySQL
393394
db_name: midgard2_test
394395
db_host: "0.0.0.0"
@@ -397,6 +398,7 @@ The session backend configuration looks as follows:
397398
db_password: ""
398399
db_init: true
399400
blobdir: /tmp/cmf-blobs
401+
loglevel: debug
400402
.. code-block:: xml
401403
402404
<!-- app/config/config.xml -->
@@ -405,6 +407,7 @@ The session backend configuration looks as follows:
405407
<config xmlns="http://example.org/schema/dic/doctrine_phpcr">
406408
<session>
407409
<backend type="midgard2"
410+
config="/path/to/midgard-config.ini"
408411
db-type="MySQL"
409412
db-name="midgard2_test"
410413
db-host="0.0.0.0"
@@ -413,6 +416,7 @@ The session backend configuration looks as follows:
413416
db-password=""
414417
db-init="true"
415418
blobdir="/tmp/cmf-blobs"
419+
loglevel="debug"
416420
/>
417421
</backend>
418422
</session>
@@ -426,13 +430,15 @@ The session backend configuration looks as follows:
426430
'session' => array(
427431
'backend' => array(
428432
'type' => 'midgard2',
433+
'config' => '/path/to/midgard-config.ini',
429434
'db_name' => 'midgard2_test',
430435
'db_host' => '0.0.0.0',
431436
'db_port' => 3306,
432437
'db_username' => '',
433438
'db_password' => '',
434439
'db_init' => true,
435440
'blobdir' => '/tmp/cmf-blobs",
441+
'loglevel' => 'debug',
436442
),
437443
),
438444
));
@@ -567,7 +573,7 @@ You can also enable `metadata caching`_.
567573
>
568574
<mappings>
569575
<"name"
570-
mapping="true
576+
mapping="true"
571577
type="null"
572578
dir="null"
573579
alias="null"
@@ -677,7 +683,8 @@ documentation on Multilanguage`_.
677683
'en' => array('de', 'fr'),
678684
'de' => array('en', 'fr'),
679685
'fr' => array('en', 'de'),
680-
'locale_fallback' => 'hardcoded'
686+
),
687+
'locale_fallback' => 'hardcoded',
681688
)
682689
);
683690
@@ -785,6 +792,7 @@ to use as ``default_session``.
785792
<!-- as above -->
786793
</option>
787794
</session>
795+
</session>
788796
</config>
789797
</container>
790798
@@ -944,6 +952,7 @@ A full example looks as follows:
944952
>
945953
<backend type="jackrabbit" url="%magnolia_url%"/>
946954
</session>
955+
</session>
947956
948957
<odm auto_generate_proxy_classes="%kernel.debug%">
949958
<document-manager
@@ -990,7 +999,7 @@ A full example looks as follows:
990999
),
9911000
'website' => array(
9921001
'backend' => array(
993-
'type' => 'jackrabbit,
1002+
'type' => 'jackrabbit',
9941003
'url' => '%magnolia_url%',
9951004
),
9961005
'workspace' => 'website',
@@ -999,14 +1008,15 @@ A full example looks as follows:
9991008
),
10001009
'dms' => array(
10011010
'backend' => array(
1002-
'type' => 'jackrabbit,
1011+
'type' => 'jackrabbit',
10031012
'url' => '%magnolia_url%',
10041013
),
10051014
'workspace' => 'dms',
10061015
'username' => '%magnolia_user%',
10071016
'password' => '%magnolia_pass%',
10081017
),
1009-
1018+
),
1019+
),
10101020
'odm' => array(
10111021
'auto_generate_proxy_classes' => '%kernel.debug%',
10121022
'document_managers' => array(
@@ -1021,12 +1031,14 @@ A full example looks as follows:
10211031
),
10221032
'website' => array(
10231033
'session' => 'website',
1034+
'configuration_id' => 'sandbox_magnolia.odm_configuration',
10241035
'mappings' => array(
10251036
'SandboxMagnoliaBundle' => null,
10261037
),
10271038
),
10281039
'dms' => array(
10291040
'session' => 'dms',
1041+
'configuration_id' => 'sandbox_magnolia.odm_configuration',
10301042
'mappings' => array(
10311043
'SandboxMagnoliaBundle' => null,
10321044
),

0 commit comments

Comments
 (0)