Allow for adding extra_hosts in web

This commit is contained in:
Oliver Davies 2024-10-20 14:13:05 +01:00
parent f02fce7ff5
commit f1623ae6c3

View file

@ -258,6 +258,14 @@ final class ConfigDto
public string $type; public string $type;
#[Assert\Collection([ #[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([ 'type' => new Assert\Required([
new Assert\Choice(choices: ['apache', 'caddy', 'nginx']), new Assert\Choice(choices: ['apache', 'caddy', 'nginx']),
]), ]),