@@ -37,7 +37,6 @@ |
||
| 37 | 37 | * @param ManagerRegistry $managerRegistry |
| 38 | 38 | * @param PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory |
| 39 | 39 | * @param PropertyMetadataFactoryInterface $propertyMetadataFactory |
| 40 | - * @param QueryItemExtensionInterface[] $itemExtensions |
|
| 41 | 40 | */ |
| 42 | 41 | public function __construct(ManagerRegistry $managerRegistry, PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, PropertyMetadataFactoryInterface $propertyMetadataFactory, array $collectionExtensions = []) |
| 43 | 42 | { |
@@ -11,15 +11,12 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace ApiPlatform\Core\Bridge\Doctrine\Orm; |
| 13 | 13 | |
| 14 | -use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGenerator; |
|
| 15 | 14 | use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\IdentifierManagerTrait; |
| 16 | 15 | use ApiPlatform\Core\DataProvider\SubcollectionDataProviderInterface; |
| 17 | -use ApiPlatform\Core\Exception\ResourceClassNotSupportedException; |
|
| 18 | 16 | use ApiPlatform\Core\Exception\RuntimeException; |
| 19 | 17 | use ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface; |
| 20 | 18 | use ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface; |
| 21 | 19 | use Doctrine\Common\Persistence\ManagerRegistry; |
| 22 | -use Doctrine\ORM\EntityManagerInterface; |
|
| 23 | 20 | |
| 24 | 21 | /** |
| 25 | 22 | * Subcollection data provider for the Doctrine ORM. |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | */ |
| 66 | 66 | public function getResourceClassFromContext($value, array $context = null, bool $strict = false): string |
| 67 | 67 | { |
| 68 | - $resourceClass = $context['resource_class'] ?? null; |
|
| 68 | + $resourceClass = $context['resource_class'] ?? null; |
|
| 69 | 69 | |
| 70 | 70 | if (isset($context['subcollection_resource_class']) && null !== $context['subcollection_resource_class']) { |
| 71 | 71 | $resourceClass = $context['subcollection_resource_class']; |