You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
->scalarNode('uri')->defaultValue(self::SCHEMA_ORG_URI)->info('RDF vocabulary to use')->example('https://schema.org/version/latest/schemaorg-current-https.rdf')->end()
79
+
->scalarNode('uri')->info('RDF vocabulary to use')->example('https://schema.org/version/latest/schemaorg-current-https.rdf')->end()
->booleanNode('allTypes')->defaultNull()->info('Generate all types for this vocabulary, even if an explicit configuration exists. If allTypes is enabled globally, it can be disabled for this particular vocabulary')->end()
82
+
->arrayNode('apiResourceArguments')
83
+
->info('Arguments to add to ApiResource for all the classes generated for this vocabulary')
84
+
->variablePrototype()->end()
85
+
->beforeNormalization()
86
+
->ifArray()
87
+
->then($transformOmap)
88
+
->end()
89
+
->end()
79
90
->end()
80
91
->end()
81
92
->end()
@@ -84,7 +95,7 @@ static function ($rdf) {
84
95
->info('OWL relation files containing cardinality information in the GoodRelations format')
->info('Doctrine inheritance attributes (if set, no other attributes are generated)')
122
-
->prototype('variable')->end()
133
+
->variablePrototype()->end()
123
134
->end()
124
135
->end()
125
136
->end()
@@ -136,7 +147,7 @@ static function ($rdf) {
136
147
->booleanNode('fluentMutatorMethods')->defaultFalse()->info('Set this flag to true to generate fluent setter, adder and remover methods')->end()
137
148
->arrayNode('rangeMapping')
138
149
->useAttributeAsKey('name')
139
-
->prototype('scalar')->end()
150
+
->scalarPrototype()->end()
140
151
->end()
141
152
->booleanNode('allTypes')->defaultFalse()->info('Generate all types, even if an explicit configuration exists')->end()
142
153
->booleanNode('resolveTypes')->defaultFalse()->info('If a type is present in a vocabulary but not explicitly imported (types) or if the vocabulary is not totally imported (allTypes), it will be generated')->end()
@@ -172,17 +183,24 @@ static function ($rdf) {
172
183
->children()
173
184
->arrayNode('attributes')
174
185
->info('Doctrine attributes (if set, no other attributes are generated)')
175
-
->prototype('variable')->end()
186
+
->variablePrototype()->end()
176
187
->end()
177
188
->end()
178
189
->end()
179
190
->scalarNode('parent')->defaultFalse()->info('The parent class, set to false for a top level class')->end()
180
191
->scalarNode('guessFrom')->defaultValue('Thing')->info('If declaring a custom class, this will be the class from which properties type will be guessed')->end()
181
192
->arrayNode('operations')
182
193
->info('Operations for the class')
183
-
->prototype('variable')->end()
194
+
->variablePrototype()->end()
195
+
->end()
196
+
->arrayNode('apiResourceArguments')
197
+
->info('Arguments to add to ApiResource (for instance security)')
198
+
->variablePrototype()->end()
199
+
->beforeNormalization()
200
+
->ifArray()
201
+
->then($transformOmap)
202
+
->end()
184
203
->end()
185
-
->scalarNode('security')->defaultNull()->info('Security directive for the class')->end()
186
204
->booleanNode('allProperties')->defaultFalse()->info('Import all existing properties')->end()
187
205
->arrayNode('properties')
188
206
->info('Properties of this type to use')
@@ -206,12 +224,19 @@ static function ($rdf) {
206
224
->arrayNode('ormColumn')
207
225
->info('The doctrine column attribute content')
208
226
->example('{type: "decimal", precision: 5, scale: 1, options: {comment: "my comment"}}')
209
-
->prototype('variable')->end()
227
+
->variablePrototype()->end()
228
+
->end()
229
+
->arrayNode('apiPropertyArguments')
230
+
->info('Arguments to add to ApiProperty (for instance security)')
231
+
->variablePrototype()->end()
232
+
->beforeNormalization()
233
+
->ifArray()
234
+
->then($transformOmap)
235
+
->end()
210
236
->end()
211
-
->scalarNode('security')->defaultNull()->info('Security directive for the property')->end()
212
237
->arrayNode('groups')
213
238
->info('Symfony Serialization Groups')
214
-
->prototype('scalar')->end()
239
+
->scalarPrototype()->end()
215
240
->end()
216
241
->scalarNode('mappedBy')->defaultNull()->info('The doctrine mapped by attribute')->example('partOfSeason')->end()
217
242
->scalarNode('inversedBy')->defaultNull()->info('The doctrine inversed by attribute')->example('episodes')->end()
@@ -233,7 +258,7 @@ static function ($rdf) {
233
258
->defaultValue([
234
259
PhpDocAnnotationGenerator::class,
235
260
])
236
-
->prototype('scalar')->end()
261
+
->scalarPrototype()->end()
237
262
->end()
238
263
->arrayNode('attributeGenerators')
239
264
->info('Attribute generators to use')
@@ -243,11 +268,11 @@ static function ($rdf) {
243
268
ConstraintAttributeGenerator::class,
244
269
SerializerGroupsAttributeGenerator::class,
245
270
])
246
-
->prototype('scalar')->end()
271
+
->scalarPrototype()->end()
247
272
->end()
248
273
->arrayNode('generatorTemplates')
249
274
->info('Directories for custom generator twig templates')
0 commit comments