This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +16
-38
lines changed Expand file tree Collapse file tree 1 file changed +16
-38
lines changed Original file line number Diff line number Diff line change @@ -100,54 +100,32 @@ Create the following file in your applications configuration directory:
100
100
101
101
# app/config/routing_auto.yml
102
102
cmf_routing_auto :
103
- auto_route_mapping :
103
+ mappings :
104
104
Acme\BasicCmsBundle\Document\Page :
105
105
content_path :
106
106
pages :
107
- provider :
108
- name : specified
109
- path : /cms/routes/page
110
- exists_action :
111
- strategy : use
112
- not_exists_action :
113
- strategy : create
107
+ provider : [specified, { path: /cms/routes/page }]
108
+ exists_action : use
109
+ not_exists_action : create
114
110
content_name :
115
- provider :
116
- name : content_method
117
- method : getTitle
118
- exists_action :
119
- strategy : auto_increment
120
- pattern : -%d
121
- not_exists_action :
122
- strategy : create
111
+ provider : [content_method, { method: getTitle }]
112
+ exists_action : auto_increment
113
+ not_exists_action : create
123
114
124
115
Acme\BasicCmsBundle\Document\Post :
125
116
content_path :
126
117
blog_path :
127
- provider :
128
- name : specified
129
- path : /cms/routes/post
130
- exists_action :
131
- strategy : use
132
- not_exists_action :
133
- strategy : create
118
+ provider : [specified, { path: /cms/routes/post }]
119
+ exists_action : use
120
+ not_exists_action : create
134
121
date :
135
- provider :
136
- name : content_datetime
137
- method : getDate
138
- exists_action :
139
- strategy : use
140
- not_exists_action :
141
- strategy : create
122
+ provider : [content_datetime, { method: getDate}]
123
+ exists_action : use
124
+ not_exists_action : create
142
125
content_name :
143
- provider :
144
- name : content_method
145
- method : getTitle
146
- exists_action :
147
- strategy : auto_increment
148
- pattern : -%d
149
- not_exists_action :
150
- strategy : create
126
+ provider : [content_method, { method: getTitle }]
127
+ exists_action : auto_increment
128
+ not_exists_action : create
151
129
152
130
This will configure the routing auto system to automatically create and update
153
131
route documents for both the ``Page `` and ``Post `` documents.
You can’t perform that action at this time.
0 commit comments