Skip to content

Commit 09aacf9

Browse files
authored
fix(symfony): revert breaking change on attributes extractor (#6170)
1 parent 9f50aa7 commit 09aacf9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Util/AttributesExtractor.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ private function __construct()
3232
*/
3333
public static function extractAttributes(array $attributes): array
3434
{
35-
if (($attributes['_api_operation'] ?? null) && !isset($attributes['_api_resource_class'])) {
36-
$attributes['_api_resource_class'] = $attributes['_api_operation']->getClass();
37-
}
38-
3935
$result = ['resource_class' => $attributes['_api_resource_class'] ?? null, 'has_composite_identifier' => $attributes['_api_has_composite_identifier'] ?? false];
4036

4137
if (null === $result['resource_class']) {

0 commit comments

Comments
 (0)