mirror of
https://github.com/opdavies/build-configs.git
synced 2025-03-13 05:26:56 +00:00
Allow for adding extra_hosts
in web
This commit is contained in:
parent
f02fce7ff5
commit
f1623ae6c3
|
@ -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']),
|
||||||
]),
|
]),
|
||||||
|
|
Loading…
Reference in a new issue