diff --git a/app/Domain/Integrations/Controllers/IntegrationController.php b/app/Domain/Integrations/Controllers/IntegrationController.php index f25cf064c..a11ad5deb 100644 --- a/app/Domain/Integrations/Controllers/IntegrationController.php +++ b/app/Domain/Integrations/Controllers/IntegrationController.php @@ -36,7 +36,7 @@ use App\Domain\Integrations\UdbOrganizer; use App\Domain\Integrations\Repositories\IntegrationRepository; use App\Domain\Integrations\Repositories\IntegrationUrlRepository; -use App\Domain\Integrations\Repositories\UiTdatabankOrganizerRepository; +use App\Domain\Integrations\Repositories\UdbOrganizerRepository; use App\Domain\KeyVisibilityUpgrades\KeyVisibilityUpgrade; use App\Domain\KeyVisibilityUpgrades\Repositories\KeyVisibilityUpgradeRepository; use App\Domain\Organizations\Repositories\OrganizationRepository; @@ -70,7 +70,7 @@ public function __construct( private readonly ContactRepository $contactRepository, private readonly ContactKeyVisibilityRepository $contactKeyVisibilityRepository, private readonly OrganizationRepository $organizationRepository, - private readonly UiTdatabankOrganizerRepository $organizerRepository, + private readonly UdbOrganizerRepository $organizerRepository, private readonly CouponRepository $couponRepository, private readonly Auth0ClientRepository $auth0ClientRepository, private readonly UiTiDv1ConsumerRepository $uitidV1ConsumerRepository, diff --git a/app/Domain/Integrations/IntegrationServiceProvider.php b/app/Domain/Integrations/IntegrationServiceProvider.php index 05e750eba..73a3aec22 100644 --- a/app/Domain/Integrations/IntegrationServiceProvider.php +++ b/app/Domain/Integrations/IntegrationServiceProvider.php @@ -9,10 +9,10 @@ use App\Domain\Integrations\Listeners\UpgradeKeyVisibility; use App\Domain\Integrations\Repositories\EloquentIntegrationRepository; use App\Domain\Integrations\Repositories\EloquentIntegrationUrlRepository; -use App\Domain\Integrations\Repositories\EloquentUiTdatabankOrganizerRepository; +use App\Domain\Integrations\Repositories\EloquentUdbOrganizerRepository; use App\Domain\Integrations\Repositories\IntegrationRepository; use App\Domain\Integrations\Repositories\IntegrationUrlRepository; -use App\Domain\Integrations\Repositories\UiTdatabankOrganizerRepository; +use App\Domain\Integrations\Repositories\UdbOrganizerRepository; use App\Domain\KeyVisibilityUpgrades\Events\KeyVisibilityUpgradeCreated; use Illuminate\Support\Facades\Event; use Illuminate\Support\ServiceProvider; @@ -23,7 +23,7 @@ public function register(): void { $this->app->bind(IntegrationRepository::class, EloquentIntegrationRepository::class); $this->app->bind(IntegrationUrlRepository::class, EloquentIntegrationUrlRepository::class); - $this->app->bind(UiTdatabankOrganizerRepository::class, EloquentUiTdatabankOrganizerRepository::class); + $this->app->bind(UdbOrganizerRepository::class, EloquentUdbOrganizerRepository::class); Event::listen(IntegrationCreated::class, [ActivateIntegration::class, 'handle']); Event::listen(KeyVisibilityUpgradeCreated::class, [UpgradeKeyVisibility::class, 'handle']); diff --git a/app/Domain/Integrations/Repositories/EloquentUiTdatabankOrganizerRepository.php b/app/Domain/Integrations/Repositories/EloquentUdbOrganizerRepository.php similarity index 91% rename from app/Domain/Integrations/Repositories/EloquentUiTdatabankOrganizerRepository.php rename to app/Domain/Integrations/Repositories/EloquentUdbOrganizerRepository.php index 0fc5536c3..34e5c724c 100644 --- a/app/Domain/Integrations/Repositories/EloquentUiTdatabankOrganizerRepository.php +++ b/app/Domain/Integrations/Repositories/EloquentUdbOrganizerRepository.php @@ -8,7 +8,7 @@ use App\Domain\Integrations\UdbOrganizer; use Illuminate\Support\Facades\DB; -final class EloquentUiTdatabankOrganizerRepository implements UiTdatabankOrganizerRepository +final class EloquentUdbOrganizerRepository implements UdbOrganizerRepository { public function create(UdbOrganizer ...$organizers): void { diff --git a/app/Domain/Integrations/Repositories/UiTdatabankOrganizerRepository.php b/app/Domain/Integrations/Repositories/UdbOrganizerRepository.php similarity index 85% rename from app/Domain/Integrations/Repositories/UiTdatabankOrganizerRepository.php rename to app/Domain/Integrations/Repositories/UdbOrganizerRepository.php index 6b45f466c..eb427c418 100644 --- a/app/Domain/Integrations/Repositories/UiTdatabankOrganizerRepository.php +++ b/app/Domain/Integrations/Repositories/UdbOrganizerRepository.php @@ -6,7 +6,7 @@ use App\Domain\Integrations\UdbOrganizer; -interface UiTdatabankOrganizerRepository +interface UdbOrganizerRepository { public function create(UdbOrganizer ...$organizer): void; diff --git a/app/Nova/Actions/ActivateUitpasIntegration.php b/app/Nova/Actions/ActivateUitpasIntegration.php index 08a2a5bf3..39c68f031 100644 --- a/app/Nova/Actions/ActivateUitpasIntegration.php +++ b/app/Nova/Actions/ActivateUitpasIntegration.php @@ -7,7 +7,7 @@ use App\Domain\Integrations\Models\IntegrationModel; use App\Domain\Integrations\UdbOrganizer; use App\Domain\Integrations\Repositories\IntegrationRepository; -use App\Domain\Integrations\Repositories\UiTdatabankOrganizerRepository; +use App\Domain\Integrations\Repositories\UdbOrganizerRepository; use App\Domain\Organizations\Models\OrganizationModel; use Illuminate\Bus\Queueable; use Illuminate\Queue\InteractsWithQueue; @@ -27,7 +27,7 @@ final class ActivateUitpasIntegration extends Action public function __construct( private readonly IntegrationRepository $integrationRepository, - private readonly UiTdatabankOrganizerRepository $organizerRepository + private readonly UdbOrganizerRepository $organizerRepository ) { } diff --git a/app/Nova/Actions/AddUiTdatabankOrganizer.php b/app/Nova/Actions/AddUiTdatabankOrganizer.php index 261b29b9c..16a50943b 100644 --- a/app/Nova/Actions/AddUiTdatabankOrganizer.php +++ b/app/Nova/Actions/AddUiTdatabankOrganizer.php @@ -6,7 +6,7 @@ use App\Domain\Integrations\Models\IntegrationModel; use App\Domain\Integrations\UdbOrganizer; -use App\Domain\Integrations\Repositories\UiTdatabankOrganizerRepository; +use App\Domain\Integrations\Repositories\UdbOrganizerRepository; use Illuminate\Bus\Queueable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Support\Collection; @@ -23,7 +23,7 @@ final class AddUiTdatabankOrganizer extends Action use InteractsWithQueue; use Queueable; - public function __construct(private readonly UiTdatabankOrganizerRepository $organizerRepository) + public function __construct(private readonly UdbOrganizerRepository $organizerRepository) { } diff --git a/app/Nova/Resources/Integration.php b/app/Nova/Resources/Integration.php index 1a91d0fca..c255b2881 100644 --- a/app/Nova/Resources/Integration.php +++ b/app/Nova/Resources/Integration.php @@ -11,7 +11,7 @@ use App\Domain\Integrations\KeyVisibility; use App\Domain\Integrations\Models\IntegrationModel; use App\Domain\Integrations\Repositories\IntegrationRepository; -use App\Domain\Integrations\Repositories\UiTdatabankOrganizerRepository; +use App\Domain\Integrations\Repositories\UdbOrganizerRepository; use App\Keycloak\KeycloakConfig; use App\Nova\Actions\ActivateIntegration; use App\Nova\Actions\ActivateUitpasIntegration; @@ -245,7 +245,7 @@ public function actions(NovaRequest $request): array ->canSee(fn (Request $request) => $request instanceof ActionRequest || $this->canBeActivated() && !$this->isUiTPAS()) ->canRun(fn (Request $request, IntegrationModel $model) => $model->canBeActivated()), - (new ActivateUitpasIntegration(App::make(IntegrationRepository::class), App::make(UiTdatabankOrganizerRepository::class))) + (new ActivateUitpasIntegration(App::make(IntegrationRepository::class), App::make(UdbOrganizerRepository::class))) ->exceptOnIndex() ->confirmText('Are you sure you want to activate this integration?') ->confirmButtonText('Activate') @@ -283,7 +283,7 @@ public function actions(NovaRequest $request): array ->canSee(fn (Request $request) => $request instanceof ActionRequest || $this->canBeUnblocked()) ->canRun(fn (Request $request, IntegrationModel $model) => $model->canBeUnblocked()), - (new AddUiTdatabankOrganizer(App::make(UiTdatabankOrganizerRepository::class))) + (new AddUiTdatabankOrganizer(App::make(UdbOrganizerRepository::class))) ->exceptOnIndex() ->confirmText('Are you sure you want to add an organizer?') ->confirmButtonText('Add')