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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@
12
12
* GraphQL: **BC**`operation` is now `operationName` to follow the standard (#3568)
13
13
* OpenAPI: Add PHP default values to the documentation (#2386)
14
14
* Deprecate using a validation groups generator service not implementing `ApiPlatform\Core\Bridge\Symfony\Validator\ValidationGroupsGeneratorInterface` (#3346)
15
+
* Subresources: subresource resourceClass can now be defined as a container parameter in XML and Yaml definitions
Copy file name to clipboardExpand all lines: src/Metadata/Extractor/YamlExtractor.php
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -100,6 +100,9 @@ private function extractProperties(array $resourceYaml, string $resourceName, st
100
100
if (!\is_array($propertyValues)) {
101
101
thrownewInvalidArgumentException(sprintf('"%s" setting is expected to be null or an array, %s given in "%s".', $propertyName, \gettype($propertyValues), $path));
102
102
}
103
+
if (isset($propertyValues['subresource']['resourceClass'])) {
0 commit comments