Skip to content

Commit

Permalink
rename uiTdatabankOrganizerRepo to UdbOrganizerRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasVHG committed Aug 6, 2024
1 parent e1a9fd9 commit 3a69384
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions app/Domain/Integrations/Controllers/IntegrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions app/Domain/Integrations/IntegrationServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use App\Domain\Integrations\UdbOrganizer;

interface UiTdatabankOrganizerRepository
interface UdbOrganizerRepository
{
public function create(UdbOrganizer ...$organizer): void;

Expand Down
4 changes: 2 additions & 2 deletions app/Nova/Actions/ActivateUitpasIntegration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -27,7 +27,7 @@ final class ActivateUitpasIntegration extends Action

public function __construct(
private readonly IntegrationRepository $integrationRepository,
private readonly UiTdatabankOrganizerRepository $organizerRepository
private readonly UdbOrganizerRepository $organizerRepository
) {
}

Expand Down
4 changes: 2 additions & 2 deletions app/Nova/Actions/AddUiTdatabankOrganizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
{
}

Expand Down
6 changes: 3 additions & 3 deletions app/Nova/Resources/Integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 3a69384

Please sign in to comment.