Skip to content

Commit

Permalink
Try to use interfaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
herbertroth committed Apr 18, 2024
1 parent 05c5668 commit b7ef53c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Controller/Api/Assets/CollectionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Service/AssetSearchServiceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit b7ef53c

Please sign in to comment.