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('author')->defaultFalse()->info('The value of the phpDoc\'s @author annotation')->example('Kévin Dunglas <[email protected]>')->end()
89
87
->enumNode('fieldVisibility')->values(['private', 'protected', 'public'])->defaultValue('private')->cannotBeEmpty()->info('Visibility of entities fields')->end()
90
88
->arrayNode('types')
89
+
->beforeNormalization()
90
+
->always()
91
+
->then(function ($v) {
92
+
foreach ($vas$key => $type) {
93
+
if (!isset($type['properties'])) {
94
+
$v[$key]['allProperties'] = true;
95
+
}
96
+
}
97
+
98
+
return$v;
99
+
})
100
+
->end()
91
101
->info('Schema.org\'s types to use')
92
102
->useAttributeAsKey('id')
93
103
->prototype('array')
@@ -111,6 +121,7 @@ function ($rdfa) {
111
121
->end()
112
122
->scalarNode('parent')->defaultNull()->info('The parent class, set to false for a top level class')->end()
113
123
->scalarNode('guessFrom')->defaultValue('Thing')->info('If declaring a custom class, this will be the class from which properties type will be guessed')->end()
124
+
->booleanNode('allProperties')->defaultFalse()->info('Import all existing properties')->end()
0 commit comments