diff --git a/src/Controller/Api/Assets/CollectionController.php b/src/Controller/Api/Assets/CollectionController.php index dac059fd8..9a3e57fcf 100644 --- a/src/Controller/Api/Assets/CollectionController.php +++ b/src/Controller/Api/Assets/CollectionController.php @@ -85,7 +85,6 @@ public function __construct( #[UnauthorizedResponse] public function getAssets(#[MapQueryString] Parameters $parameters): JsonResponse { - /** @var AssetQuery $assetQuery */ $assetQuery = $this->filterService->applyFilters( $parameters, FilterServiceInterface::TYPE_ASSET diff --git a/src/Service/AssetSearchServiceInterface.php b/src/Service/AssetSearchServiceInterface.php index 482a74f4c..5a49605a5 100644 --- a/src/Service/AssetSearchServiceInterface.php +++ b/src/Service/AssetSearchServiceInterface.php @@ -25,11 +25,11 @@ use Pimcore\Bundle\StudioApiBundle\Response\Asset\Text; use Pimcore\Bundle\StudioApiBundle\Response\Asset\Unknown; use Pimcore\Bundle\StudioApiBundle\Response\Asset\Video; -use Pimcore\Bundle\StudioApiBundle\Service\GenericData\V1\AssetQuery; +use Pimcore\Bundle\StudioApiBundle\Service\GenericData\V1\QueryInterface; interface AssetSearchServiceInterface { - public function searchAssets(AssetQuery $assetQuery): AssetSearchResult; + public function searchAssets(QueryInterface $assetQuery): AssetSearchResult; public function getAssetById(int $id): Asset|Archive|Audio|Document|Folder|Image|Text|Unknown|Video|null; }