From f1623ae6c34fcf19972d5c95b39805f3a9fe79bb Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 20 Oct 2024 14:13:05 +0100 Subject: [PATCH] Allow for adding `extra_hosts` in `web` --- src/DataTransferObject/ConfigDto.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/DataTransferObject/ConfigDto.php b/src/DataTransferObject/ConfigDto.php index 99f6fbe..10793d8 100644 --- a/src/DataTransferObject/ConfigDto.php +++ b/src/DataTransferObject/ConfigDto.php @@ -258,6 +258,14 @@ final class ConfigDto public string $type; #[Assert\Collection([ + 'extra_hosts' => new Assert\Optional([ + new Assert\Type('array'), + new Assert\All([ + new Assert\NotBlank(), + new Assert\Type('string'), + ]), + ]), + 'type' => new Assert\Required([ new Assert\Choice(choices: ['apache', 'caddy', 'nginx']), ]),