@@ -41,8 +41,8 @@ |
||
| 41 | 41 | { |
| 42 | 42 | $result = [ |
| 43 | 43 | 'resource_class' => $request->attributes->get('_api_resource_class'), |
| 44 | - 'subcollection_property' => $request->attributes->get('_api_subcollection_property_name'), |
|
| 45 | - 'subcollection_resource_class' => $request->attributes->get('_api_subcollection_resource_class'), |
|
| 44 | + 'subcollection_property' => $request->attributes->get('_api_subcollection_property_name'), |
|
| 45 | + 'subcollection_resource_class' => $request->attributes->get('_api_subcollection_resource_class'), |
|
| 46 | 46 | ]; |
| 47 | 47 | |
| 48 | 48 | if (null === $result['resource_class']) { |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | } |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - throw new RuntimeException('One of the following request attribute must be defined: %s', implode(', ', array_map(function ($operationType) { |
|
| 61 | + throw new RuntimeException('One of the following request attribute must be defined: %s', implode(', ', array_map(function($operationType) { |
|
| 62 | 62 | return "_api_{$operationType}_operation_name"; |
| 63 | 63 | }, OperationTypes::TYPES))); |
| 64 | 64 | } |