refactor(backend): reorganize domains into Core, Commerce, Ticketing and Shared

This commit is contained in:
2026-09-18 10:15:57 -03:00
parent 1241e1f7e8
commit 1e67d27a90
563 changed files with 2302 additions and 2230 deletions

View File

@@ -1,11 +1,11 @@
<?php
namespace App\Domains\Event\Services;
namespace App\Domains\Ticketing\Event\Services;
use App\Domains\Purchase\Models\Purchase;
use App\Domains\Tenant\Models\Tenant;
use App\Domains\Ticket\Models\Ticket;
use App\Domains\Ticket\Services\TicketValidityResolver;
use App\Domains\Commerce\Purchase\Models\Purchase;
use App\Domains\Core\Tenant\Models\Tenant;
use App\Domains\Ticketing\Ticket\Models\Ticket;
use App\Domains\Ticketing\Ticket\Services\TicketValidityResolver;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Collection;

View File

@@ -1,8 +1,8 @@
<?php
namespace App\Domains\Event\Services;
namespace App\Domains\Ticketing\Event\Services;
use App\Domains\Event\Models\EventDate;
use App\Domains\Ticketing\Event\Models\EventDate;
class EffectiveEventDateResolver
{

View File

@@ -1,8 +1,8 @@
<?php
namespace App\Domains\Event\Services;
namespace App\Domains\Ticketing\Event\Services;
use App\Domains\Event\Models\EventDate;
use App\Domains\Ticketing\Event\Models\EventDate;
use Illuminate\Database\Eloquent\Collection as EloquentCollection;
use Illuminate\Support\Collection;

View File

@@ -1,10 +1,10 @@
<?php
namespace App\Domains\Event\Services;
namespace App\Domains\Ticketing\Event\Services;
use App\Domains\Event\Enums\EventDateChangeType;
use App\Domains\Event\Models\EventDate;
use App\Domains\Event\Models\EventDateChange;
use App\Domains\Ticketing\Event\Enums\EventDateChangeType;
use App\Domains\Ticketing\Event\Models\EventDate;
use App\Domains\Ticketing\Event\Models\EventDateChange;
use Illuminate\Support\Collection;
class EventDateInfoFormatter

View File

@@ -1,9 +1,9 @@
<?php
namespace App\Domains\Event\Services;
namespace App\Domains\Ticketing\Event\Services;
use App\Domains\Event\Enums\EventDateChangeType;
use App\Domains\Event\Models\EventDateChange;
use App\Domains\Ticketing\Event\Enums\EventDateChangeType;
use App\Domains\Ticketing\Event\Models\EventDateChange;
use Illuminate\Support\Collection;
class EventDateNoticeFormatter

View File

@@ -1,11 +1,11 @@
<?php
namespace App\Domains\Event\Services;
namespace App\Domains\Ticketing\Event\Services;
use App\Domains\Auth\Models\User;
use App\Domains\Event\Models\EventDateChange;
use App\Domains\Event\Models\EventDateChangeView;
use App\Domains\Tenant\Models\Tenant;
use App\Domains\Core\Auth\Models\User;
use App\Domains\Ticketing\Event\Models\EventDateChange;
use App\Domains\Ticketing\Event\Models\EventDateChangeView;
use App\Domains\Core\Tenant\Models\Tenant;
use Illuminate\Support\Facades\DB;
class EventDateNoticeService

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Domains\Event\Services;
namespace App\Domains\Ticketing\Event\Services;
use DateTimeImmutable;

View File

@@ -1,19 +1,19 @@
<?php
namespace App\Domains\Event\Services;
namespace App\Domains\Ticketing\Event\Services;
use App\Domains\Auth\Models\User;
use App\Domains\Cart\Services\InvalidateEventDateCartsService;
use App\Domains\Catalog\Models\Variant;
use App\Domains\Catalog\Services\StockReservationService;
use App\Domains\Catalog\Services\VariantReplacementService;
use App\Domains\Event\Enums\EventDateChangeType;
use App\Domains\Event\Events\EventDateRescheduled;
use App\Domains\Event\Events\EventDateSuspended;
use App\Domains\Event\Models\EventDate;
use App\Domains\Event\Models\EventDateChange;
use App\Domains\Tenant\Models\Tenant;
use App\Domains\Ticket\Models\Ticket;
use App\Domains\Core\Auth\Models\User;
use App\Domains\Commerce\Cart\Services\InvalidateEventDateCartsService;
use App\Domains\Commerce\Catalog\Models\Variant;
use App\Domains\Commerce\Catalog\Services\StockReservationService;
use App\Domains\Commerce\Catalog\Services\VariantReplacementService;
use App\Domains\Ticketing\Event\Enums\EventDateChangeType;
use App\Domains\Ticketing\Event\Events\EventDateRescheduled;
use App\Domains\Ticketing\Event\Events\EventDateSuspended;
use App\Domains\Ticketing\Event\Models\EventDate;
use App\Domains\Ticketing\Event\Models\EventDateChange;
use App\Domains\Core\Tenant\Models\Tenant;
use App\Domains\Ticketing\Ticket\Models\Ticket;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\DB;
use Illuminate\Validation\ValidationException;