This repository was archived by the owner on Apr 14, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathconfig.yml
More file actions
328 lines (301 loc) · 10.6 KB
/
Copy pathconfig.yml
File metadata and controls
328 lines (301 loc) · 10.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
imports:
- { resource: parameters.yml }
- { resource: phpcr.yml }
- { resource: security.yml }
- { resource: services.yml }
framework:
#esi: ~
translator: { fallback: en }
secret: '%secret%'
router: { resource: '%kernel.root_dir%/config/routing.yml' }
form: true
csrf_protection: true
validation: { enable_annotations: true }
templating: { engines: ['twig'] } #assets_version: SomeVersionScheme
default_locale: '%locale%'
session:
name: symfony-cmf
trusted_proxies: ~
# Twig Configuration
twig:
debug: '%kernel.debug%'
strict_variables: '%kernel.debug%'
exception_controller: cmf_seo.error.suggestion_provider.controller:listAction
# Assetic Configuration
assetic:
debug: '%kernel.debug%'
use_controller: false
# bundles: [ ] # if enabled, every bundle must be added
#java: /usr/bin/java
filters:
cssrewrite: ~
coffee:
bin: '%coffee.bin%'
node: '%coffee.node%'
apply_to: '%coffee.extension%'
# closure:
# jar: '%kernel.root_dir%/java/compiler.jar'
# yui_css:
# jar: '%kernel.root_dir%/java/yuicompressor-2.4.2.jar'
# Swiftmailer Configuration
swiftmailer:
transport: '%mailer_transport%'
host: '%mailer_host%'
username: '%mailer_user%'
password: '%mailer_password%'
spool: { type: memory }
# for jackalope-doctrine-dbal
doctrine:
dbal:
driver: '%database_driver%'
host: '%database_host%'
port: '%database_port%'
dbname: '%database_name%'
user: '%database_user%'
password: '%database_password%'
path: '%database_path%'
charset: UTF8
# cmf configuration
doctrine_phpcr:
# configure the PHPCR session
session:
backend: '%phpcr_backend%'
workspace: '%phpcr_workspace%'
username: '%phpcr_user%'
password: '%phpcr_pass%'
# enable the ODM layer
odm:
auto_mapping: true
auto_generate_proxy_classes: '%kernel.debug%'
locales:
en: [de, fr]
de: [en, fr]
fr: [en, de]
knp_menu:
twig: true
cmf_core:
multilang:
locales: '%locales%'
persistence:
phpcr:
enabled: true
cmf_content:
persistence:
phpcr:
document_class: AppBundle\Document\DemoSeoContent
cmf_routing:
chain:
routers_by_id:
cmf_routing.dynamic_router: 20
router.default: 100
dynamic:
route_collection_limit: 10
controllers_by_type:
demo_type: app.content_controller:typeAction
controllers_by_class:
AppBundle\Document\DemoClassContent: app.content_controller:classAction
Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\RedirectRoute: cmf_routing.redirect_controller:redirectAction
templates_by_class:
Symfony\Cmf\Bundle\ContentBundle\Doctrine\Phpcr\StaticContent: static_content/index.html.twig
cmf_seo:
title: 'CMF Sandbox - %%content_title%%'
description: 'The Content Management Framework. %%content_description%%'
alternate_locale: ~
error:
enable_parent_provider: true
enable_sibling_provider: true
templates:
html: ":error/index.html.twig"
exclusion_rules:
- { path: 'excluded' }
sitemap:
defaults:
default_change_frequency: never
templates:
xml: ':sitemap/index.xml.twig'
html: ':sitemap/index.html.twig'
configurations:
sitemap: ~
frequent:
default_change_frequency: always
cmf_menu:
voters:
content_identity: ~
cmf_resource:
repositories:
default:
type: doctrine_phpcr_odm
cmf_resource_rest:
enhancer_map:
- { repository: default, enhancer: sonata_admin }
sonata_block:
default_contexts: [cms]
blocks:
sonata.admin.block.admin_list:
contexts: [admin]
sonata.admin.block.search_result:
contexts: [admin]
sonata_admin_doctrine_phpcr.tree_block:
settings:
id: '/cms'
contexts: [admin]
blocks_by_class:
Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\RssBlock:
cache: cmf.block.cache.js_async
sonata_admin:
extensions:
cmf_core.admin_extension.child:
implements:
- Symfony\Cmf\Bundle\CoreBundle\Model\ChildInterface
cmf_core.admin_extension.publish_workflow.time_period:
implements:
- Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishTimePeriodInterface
cmf_core.admin_extension.publish_workflow.publishable:
implements:
- Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishableInterface
cmf_menu.admin_extension.menu_node_referrers:
implements:
- Symfony\Cmf\Bundle\MenuBundle\Model\MenuNodeReferrersInterface
cmf_menu.admin_extension.menu_options:
implements:
- Symfony\Cmf\Bundle\MenuBundle\Model\MenuOptionsInterface
cmf_routing.admin_extension.route_referrers:
implements:
- Symfony\Cmf\Component\Routing\RouteReferrersInterface
cmf_routing.admin_extension.frontend_link:
implements:
- Symfony\Cmf\Component\Routing\RouteReferrersReadInterface
extends:
- Symfony\Component\Routing\Route
cmf_seo.admin_extension:
implements:
- Symfony\Cmf\Bundle\SeoBundle\SeoAwareInterface
templates:
layout: admin/custom_layout.html.twig
user_block: admin/user_block.html.twig
dashboard:
blocks:
- { position: right, type: sonata.admin.block.admin_list }
- { position: left, type: sonata_admin_doctrine_phpcr.tree_block }
groups:
content:
label: Content
icon: '<i class="fa fa-file-text-o"></i>'
items:
- cmf_content.admin
- cmf_block.simple_admin
- cmf_block.container_admin
- cmf_block.reference_admin
- cmf_block.action_admin
routing:
label: URLs
icon: '<i class="fa fa-link"></i>'
items:
- cmf_routing.route_admin
- cmf_routing.redirect_route_admin
menu:
label: Menu
icon: '<i class="fa fa-bars"></i>'
items:
- cmf_menu.menu_admin
- cmf_menu.node_admin
sonata_doctrine_phpcr_admin:
templates:
form:
- admin/form_admin_fields.html.twig
document_tree_defaults: [locale]
document_tree:
Doctrine\ODM\PHPCR\Document\Generic:
valid_children:
- all
AppBundle\Document\DemoSeoContent:
valid_children:
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\SimpleBlock
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\ContainerBlock
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\ReferenceBlock
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\ActionBlock
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\RssBlock
Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\ReferenceBlock:
valid_children: []
Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\ActionBlock:
valid_children: []
Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\SimpleBlock:
valid_children: []
Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\SlideshowBlock:
valid_children:
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\ImagineBlock
Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\ImagineBlock:
valid_children: []
Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\RssBlock:
valid_children: []
Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\ContainerBlock:
valid_children:
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\SimpleBlock
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\ContainerBlock
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\ReferenceBlock
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\ActionBlock
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\SlideshowBlock
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\RssBlock
Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\Route:
valid_children:
- Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\Route
- Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\RedirectRoute
Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\RedirectRoute:
valid_children: []
Symfony\Cmf\Bundle\MenuBundle\Doctrine\Phpcr\Menu:
valid_children:
- Symfony\Cmf\Bundle\MenuBundle\Doctrine\Phpcr\MenuNode
Symfony\Cmf\Bundle\MenuBundle\Doctrine\Phpcr\MenuNode:
valid_children:
- Symfony\Cmf\Bundle\MenuBundle\Doctrine\Phpcr\MenuNode
sonata_translation:
locales: '%locales%'
default_locale: '%locale%'
phpcr: true
sonata_seo:
page:
title: CMF Sandbox
metas:
name:
keywords: 'CMF, Symfony, Routing, Content, PHPCR'
ivory_ck_editor:
configs:
cmf_content: { toolbar: standard }
sensio_framework_extra:
router: { annotations: true }
request: { converters: true }
lunetics_locale:
strict_mode: true
guessing_order:
- router
- cookie
- browser
allowed_locales: '%locales%'
doctrine_cache:
providers:
phpcr_meta:
type: file_system
phpcr_nodes:
type: file_system
jms_serializer:
metadata:
auto_detection: true
directories:
CmfContentBundle:
namespace_prefix: 'Symfony\Cmf\Bundle\ContentBundle'
path: '@AppBundle/Resources/config/serializer/cmf'
fos_rest:
view:
force_redirects:
html: true
formats:
json: true
xml: true
templating_formats:
html: true
allowed_methods_listener: true
access_denied_listener:
json: true
format_listener:
rules:
- { path: ^/, priorities: [ html, json, xml, css ], fallback_format: html, prefer_extension: false }