From b2dc7413728c5028d9061caf894627d73642e0ba Mon Sep 17 00:00:00 2001 From: Tomasz Kryszan Date: Thu, 31 Oct 2024 10:11:25 +0100 Subject: [PATCH] Moved PermissionCheckContext to contracts --- .../Permission/PermissionCheckContextProviderInterface.php | 2 +- src/{lib => contracts}/Values/PermissionCheckContext.php | 2 +- .../Permission/ContextProvider/ContentItemContextProvider.php | 2 +- src/lib/Permission/Mapper/UsersWithPermissionInfoMapper.php | 2 +- src/lib/Permission/PermissionCheckContextResolver.php | 2 +- src/lib/Permission/PermissionCheckContextResolverInterface.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) rename src/{lib => contracts}/Values/PermissionCheckContext.php (96%) diff --git a/src/contracts/Permission/PermissionCheckContextProviderInterface.php b/src/contracts/Permission/PermissionCheckContextProviderInterface.php index 04c1f8bc1e..642b01997e 100644 --- a/src/contracts/Permission/PermissionCheckContextProviderInterface.php +++ b/src/contracts/Permission/PermissionCheckContextProviderInterface.php @@ -8,7 +8,7 @@ namespace Ibexa\Contracts\AdminUi\Permission; -use Ibexa\AdminUi\Values\PermissionCheckContext; +use Ibexa\Contracts\AdminUi\Values\PermissionCheckContext; use Symfony\Component\HttpFoundation\Request; interface PermissionCheckContextProviderInterface diff --git a/src/lib/Values/PermissionCheckContext.php b/src/contracts/Values/PermissionCheckContext.php similarity index 96% rename from src/lib/Values/PermissionCheckContext.php rename to src/contracts/Values/PermissionCheckContext.php index 5fadbe7b48..3e88ba3c4d 100644 --- a/src/lib/Values/PermissionCheckContext.php +++ b/src/contracts/Values/PermissionCheckContext.php @@ -6,7 +6,7 @@ */ declare(strict_types=1); -namespace Ibexa\AdminUi\Values; +namespace Ibexa\Contracts\AdminUi\Values; use Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion; use Ibexa\Contracts\Core\Repository\Values\ValueObject; diff --git a/src/lib/Permission/ContextProvider/ContentItemContextProvider.php b/src/lib/Permission/ContextProvider/ContentItemContextProvider.php index 4e1e018cf5..ba3f20853b 100644 --- a/src/lib/Permission/ContextProvider/ContentItemContextProvider.php +++ b/src/lib/Permission/ContextProvider/ContentItemContextProvider.php @@ -8,8 +8,8 @@ namespace Ibexa\AdminUi\Permission\ContextProvider; -use Ibexa\AdminUi\Values\PermissionCheckContext; use Ibexa\Contracts\AdminUi\Permission\PermissionCheckContextProviderInterface; +use Ibexa\Contracts\AdminUi\Values\PermissionCheckContext; use Ibexa\Contracts\Core\Exception\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\ContentService; use Ibexa\Contracts\Core\Repository\LocationService; diff --git a/src/lib/Permission/Mapper/UsersWithPermissionInfoMapper.php b/src/lib/Permission/Mapper/UsersWithPermissionInfoMapper.php index 31d1a0c7a5..26f9e38c70 100644 --- a/src/lib/Permission/Mapper/UsersWithPermissionInfoMapper.php +++ b/src/lib/Permission/Mapper/UsersWithPermissionInfoMapper.php @@ -8,7 +8,7 @@ namespace Ibexa\AdminUi\Permission\Mapper; -use Ibexa\AdminUi\Values\PermissionCheckContext; +use Ibexa\Contracts\AdminUi\Values\PermissionCheckContext; use Ibexa\Contracts\Core\Repository\PermissionResolver; use Ibexa\Contracts\Core\Repository\UserService; use Ibexa\Contracts\Core\Repository\Values\Content\Search\SearchResult; diff --git a/src/lib/Permission/PermissionCheckContextResolver.php b/src/lib/Permission/PermissionCheckContextResolver.php index 93f903e5e3..8d924b7835 100644 --- a/src/lib/Permission/PermissionCheckContextResolver.php +++ b/src/lib/Permission/PermissionCheckContextResolver.php @@ -8,7 +8,7 @@ namespace Ibexa\AdminUi\Permission; -use Ibexa\AdminUi\Values\PermissionCheckContext; +use Ibexa\Contracts\AdminUi\Values\PermissionCheckContext; use Ibexa\Contracts\Core\Exception\InvalidArgumentException; use Symfony\Component\HttpFoundation\Request; diff --git a/src/lib/Permission/PermissionCheckContextResolverInterface.php b/src/lib/Permission/PermissionCheckContextResolverInterface.php index 5cdedc9242..5df9ed9c1d 100644 --- a/src/lib/Permission/PermissionCheckContextResolverInterface.php +++ b/src/lib/Permission/PermissionCheckContextResolverInterface.php @@ -8,7 +8,7 @@ namespace Ibexa\AdminUi\Permission; -use Ibexa\AdminUi\Values\PermissionCheckContext; +use Ibexa\Contracts\AdminUi\Values\PermissionCheckContext; use Symfony\Component\HttpFoundation\Request; interface PermissionCheckContextResolverInterface