From 8934114f92789265559372f3e9b3bae60982ecfc Mon Sep 17 00:00:00 2001 From: lukinovec Date: Fri, 27 Jun 2025 11:54:13 +0200 Subject: [PATCH] Move RLSCommentConstraintException to src/RLS/Exceptions --- src/{ => RLS}/Exceptions/RLSCommentConstraintException.php | 2 +- src/RLS/PolicyManagers/TableRLSManager.php | 2 +- tests/RLS/TableManagerTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/{ => RLS}/Exceptions/RLSCommentConstraintException.php (86%) diff --git a/src/Exceptions/RLSCommentConstraintException.php b/src/RLS/Exceptions/RLSCommentConstraintException.php similarity index 86% rename from src/Exceptions/RLSCommentConstraintException.php rename to src/RLS/Exceptions/RLSCommentConstraintException.php index c3fa869d..7ca133f9 100644 --- a/src/Exceptions/RLSCommentConstraintException.php +++ b/src/RLS/Exceptions/RLSCommentConstraintException.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Stancl\Tenancy\Exceptions; +namespace Stancl\Tenancy\RLS\Exceptions; use Exception; diff --git a/src/RLS/PolicyManagers/TableRLSManager.php b/src/RLS/PolicyManagers/TableRLSManager.php index 9b6ec993..66c55a77 100644 --- a/src/RLS/PolicyManagers/TableRLSManager.php +++ b/src/RLS/PolicyManagers/TableRLSManager.php @@ -7,7 +7,7 @@ namespace Stancl\Tenancy\RLS\PolicyManagers; use Illuminate\Database\DatabaseManager; use Illuminate\Support\Str; use Stancl\Tenancy\Database\Exceptions\RecursiveRelationshipException; -use Stancl\Tenancy\Exceptions\RLSCommentConstraintException; +use Stancl\Tenancy\RLS\Exceptions\RLSCommentConstraintException; /** * Generates queries for creating RLS policies diff --git a/tests/RLS/TableManagerTest.php b/tests/RLS/TableManagerTest.php index acaa1d88..ae737788 100644 --- a/tests/RLS/TableManagerTest.php +++ b/tests/RLS/TableManagerTest.php @@ -20,7 +20,7 @@ use Stancl\Tenancy\RLS\PolicyManagers\TableRLSManager; use Stancl\Tenancy\Bootstrappers\PostgresRLSBootstrapper; use Stancl\Tenancy\Database\Exceptions\RecursiveRelationshipException; use function Stancl\Tenancy\Tests\pest; -use Stancl\Tenancy\Exceptions\RLSCommentConstraintException; +use Stancl\Tenancy\RLS\Exceptions\RLSCommentConstraintException; beforeEach(function () { CreateUserWithRLSPolicies::$forceRls = true;