mirror of
https://github.com/opdavies/build-configs.git
synced 2025-09-04 10:25:33 +01:00
Allow for adding extra_hosts
in web
This commit is contained in:
parent
f02fce7ff5
commit
f1623ae6c3
1 changed files with 8 additions and 0 deletions
|
@ -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']),
|
||||
]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue