wip: backport form handing system from create flow to edit flow

This commit is contained in:
Björn Fromme
2026-03-16 11:59:10 +01:00
parent ba0a86cbea
commit 9eeed7f992
10 changed files with 1369 additions and 220 deletions
@@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
namespace App\Form\Service\Condition;
use App\Form\Model\BookingDtoInterface;
use App\Form\Service\Contract\FieldConditionInterface;
/**
* Condition that checks if transportation services are mutable in the edit flow.
*/
class TransportationServicesMutabilityCondition implements FieldConditionInterface
{
public function evaluate(BookingDtoInterface $bookingDto, int $participantIndex, array $formData): bool
{
return false === $bookingDto->travel->transportationServicesMutable;
}
public function getDependentFields(): array
{
return [];
}
public function getDescription(): string
{
return 'Transportation services are not mutable (edit flow)';
}
}