feat: dedicated terms urls per country for accommodation bookings

This commit is contained in:
Björn Fromme
2026-08-05 12:38:34 +02:00
parent e5fa63b7e8
commit 8e4afc0813
6 changed files with 83 additions and 4 deletions
@@ -11,6 +11,7 @@ use App\Enum\Groups\AccommodationBookingStatus;
use App\Form\Model\AccommodationBookingDto;
use App\Service\AccommodationBookingService;
use App\Service\AccommodationSessionManager;
use App\Service\AccommodationTermsUrlProvider;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
@@ -353,7 +354,11 @@ final class TestableStep4Controller extends Step4Controller
AccommodationSessionManager $sessionManager,
private readonly FormInterface $form,
) {
parent::__construct($bookingService, $sessionManager);
parent::__construct(
$bookingService,
$sessionManager,
new AccommodationTermsUrlProvider(['AT' => '', 'CH' => '', 'IT' => ''], 'https://example.test/agb/'),
);
}
/**