@@ -13,8 +13,8 @@ Configuration
13
13
14
14
**type **: ``string `` **default **: ``null ``
15
15
16
- This defines the template to use when rendering the content if none is
17
- specified in the route . ``{_format} `` and ``{_locale} `` are replaced with the
16
+ This defines the template to use when rendering the content if the routing does
17
+ not specify the template . ``{_format} `` and ``{_locale} `` are replaced with the
18
18
request format and the current locale.
19
19
20
20
.. _config-content-persistence :
@@ -25,7 +25,6 @@ request format and the current locale.
25
25
This defines the persistence driver. The default configuration of persistence
26
26
is the following configuration:
27
27
28
-
29
28
.. configuration-block ::
30
29
31
30
.. code-block :: yaml
@@ -35,10 +34,8 @@ is the following configuration:
35
34
persistence :
36
35
phpcr :
37
36
enabled : false
38
- admin_class : ~
39
- document_class : ~
40
37
content_basepath : /cms/content
41
- use_sonata_admin : auto
38
+ manager_name : null
42
39
43
40
.. code-block :: xml
44
41
@@ -50,10 +47,8 @@ is the following configuration:
50
47
<persistence >
51
48
<phpcr
52
49
enabled =" false"
53
- admin_class =" null"
54
- document-class =" null"
55
50
content-basepath =" /cms/content"
56
- use-sonata-admin = " auto "
51
+ manager-name = " null "
57
52
/>
58
53
</persistence >
59
54
</config >
@@ -67,10 +62,8 @@ is the following configuration:
67
62
'persistence' => [
68
63
'phpcr' => [
69
64
'enabled' => false,
70
- 'admin_class' => null,
71
- 'document_class' => null,
72
65
'content_basepath' => '/cms/content',
73
- 'use_sonata_admin' => 'auto' ,
66
+ 'manager_name' => null ,
74
67
],
75
68
],
76
69
]);
@@ -80,37 +73,17 @@ is the following configuration:
80
73
81
74
.. include :: ../_partials/persistence_phpcr_enabled.rst.inc
82
75
83
- ``admin_class ``
84
- ...............
85
-
86
- **type **: ``string `` **default **: ``Symfony\Cmf\Bundle\ContentBundle\Admin\StaticContentAdmin ``
87
-
88
- The admin class to use when :ref: `Sonata Admin is activated <quick-tour-third-party-sonata >`.
89
-
90
- ``document_class ``
91
- ..................
92
-
93
- **type **: ``string `` **default **: ``Symfony\Cmf\Bundle\ContentBundle\Doctrine\Phpcr\StaticContent ``
94
-
95
- The Content class to use.
96
-
97
76
``content_basepath ``
98
77
....................
99
78
100
79
**type **: ``string `` **default **: ``/cms/content ``
101
80
102
- The basepath for Content documents in the PHPCR tree.
103
-
104
- ``use_sonata_admin ``
105
- ....................
81
+ The basepath for content documents in the PHPCR tree.
106
82
107
- **type **: ``enum `` **valid values **: ``true|false|auto `` **default **: ``auto ``
83
+ ``manager_name ``
84
+ ................
108
85
109
- If ``true ``, the admin classes for SimpleCmsBundle pages are activated. If set
110
- to ``auto ``, the admin services are activated only if the
111
- SonataPhpcrAdminBundle is present.
112
-
113
- If the :doc: `CoreBundle <../core/introduction >` is registered, this will
114
- default to the value of ``cmf_core.persistence.phpcr.use_sonata_admin ``.
86
+ **type **: ``string `` **default **: ``null ``
115
87
116
- .. include :: ../_partials/ivory_ckeditor.rst.inc
88
+ The document manager that holds StaticContent documents. If not set, the
89
+ default manager is used.
0 commit comments