@@ -133,7 +133,6 @@ |
||
| 133 | 133 | * @param string $operationName |
| 134 | 134 | * @param array $operation |
| 135 | 135 | * @param string $resourceShortName |
| 136 | - * @param bool $collection |
|
| 137 | 136 | * |
| 138 | 137 | * @throws RuntimeException |
| 139 | 138 | */ |
@@ -37,9 +37,6 @@ |
||
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * @param ManagerRegistry $managerRegistry |
| 40 | - * @param PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory |
|
| 41 | - * @param PropertyMetadataFactoryInterface $propertyMetadataFactory |
|
| 42 | - * @param QueryItemExtensionInterface[] $itemExtensions |
|
| 43 | 40 | */ |
| 44 | 41 | public function __construct(ManagerRegistry $managerRegistry, IdentifiersHelper $identifiersHelper, array $collectionExtensions = []) |
| 45 | 42 | { |
@@ -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 | } |