feat: replace *Service suffix with role-based class names

This commit is contained in:
Björn Fromme committed 2026-04-16 13:34:54 +02:00
1 parent 0d2cc5b998
commit d1c92f2957
88 files changed
+435 -435

No files matched your search

@@ -24,7 +24,7 @@ use App\Form\Service\Condition\ServiceSubTypeCondition;
use App\Form\Service\Condition\SingleRoomTypeCondition;
use App\Form\Service\Condition\SkiPassSelectionCondition;
use App\Form\Service\Condition\TravelStartCutoffReachedCondition;
use App\Service\ParticipantEligibilityService;
use App\Service\ParticipantEligibilityChecker;
/**
* Field state provider for the booking create workflow.
@@ -44,7 +44,7 @@ use App\Service\ParticipantEligibilityService;
class CreateFieldStateProvider extends AbstractFieldStateProvider
{
public function __construct(
private readonly ParticipantEligibilityService $participantEligibilityService,
private readonly ParticipantEligibilityChecker $participantEligibilityService,
) {
parent::__construct();
}
@@ -317,7 +317,7 @@ class CreateFieldStateProvider extends AbstractFieldStateProvider
// Room assignment field:
// - Hidden until date of birth is provided (age determines room eligibility, e.g., Baby rooms)
// - Rendered as static text when only one room type is selected (auto-assigned by RoomAssignmentService)
// - Rendered as static text when only one room type is selected (auto-assigned by RoomAssigner)
$this->fieldStateConditions['assignedRoomId'] = [
'hidden' => CompositeCondition::not($dateOfBirthProvidedCondition),
'static_text' => new SingleRoomTypeCondition(),