From db8e10367fdac2bf726f531c556dbcfc115ba432 Mon Sep 17 00:00:00 2001 From: mikolaj Date: Thu, 26 Sep 2024 14:58:02 +0200 Subject: [PATCH] Fixed issue reported by Deptrac --- src/bundle/Resources/config/services/persistence.yaml | 2 +- .../Repository => contracts/Values/Query}/CriterionMapper.php | 2 +- src/contracts/Values/Query/CriterionMapperInterface.php | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) rename src/{lib/Repository => contracts/Values/Query}/CriterionMapper.php (96%) diff --git a/src/bundle/Resources/config/services/persistence.yaml b/src/bundle/Resources/config/services/persistence.yaml index ddab7d2..f4f5313 100644 --- a/src/bundle/Resources/config/services/persistence.yaml +++ b/src/bundle/Resources/config/services/persistence.yaml @@ -4,6 +4,6 @@ services: autoconfigure: true public: false - Ibexa\CoreSearch\Repository\CriterionMapper: + Ibexa\Contracts\CoreSearch\Values\Query\CriterionMapper: arguments: $mappers: !tagged_iterator ibexa.core_search.criterion_mapper diff --git a/src/lib/Repository/CriterionMapper.php b/src/contracts/Values/Query/CriterionMapper.php similarity index 96% rename from src/lib/Repository/CriterionMapper.php rename to src/contracts/Values/Query/CriterionMapper.php index b678965..46cadba 100644 --- a/src/lib/Repository/CriterionMapper.php +++ b/src/contracts/Values/Query/CriterionMapper.php @@ -6,7 +6,7 @@ */ declare(strict_types=1); -namespace Ibexa\CoreSearch\Repository; +namespace Ibexa\Contracts\CoreSearch\Values\Query; use Doctrine\Common\Collections\Expr\Expression; use Ibexa\Contracts\CoreSearch\Values\Query\Criterion\CriterionInterface; diff --git a/src/contracts/Values/Query/CriterionMapperInterface.php b/src/contracts/Values/Query/CriterionMapperInterface.php index 1fad365..e828956 100644 --- a/src/contracts/Values/Query/CriterionMapperInterface.php +++ b/src/contracts/Values/Query/CriterionMapperInterface.php @@ -10,7 +10,6 @@ use Doctrine\Common\Collections\Expr\Expression; use Ibexa\Contracts\CoreSearch\Values\Query\Criterion\CriterionInterface; -use Ibexa\CoreSearch\Repository\CriterionMapper; /** * @template C of \Ibexa\Contracts\CoreSearch\Values\Query\Criterion\CriterionInterface