mirror of
https://github.com/opdavies/build-configs.git
synced 2025-02-02 05:47:32 +00:00
feat: validate drupal.docroot
Refs: OD-18
This commit is contained in:
parent
e30929e69c
commit
a97264d99c
|
@ -17,10 +17,15 @@ final class ConfigurationData
|
||||||
'type' => new Assert\Choice(['mariadb', 'mysql']),
|
'type' => new Assert\Choice(['mariadb', 'mysql']),
|
||||||
'version' => new Assert\Type('integer'),
|
'version' => new Assert\Type('integer'),
|
||||||
],
|
],
|
||||||
allowExtraFields: false,
|
|
||||||
)]
|
)]
|
||||||
public array $database;
|
public array $database;
|
||||||
|
|
||||||
|
#[Assert\Collection(
|
||||||
|
allowExtraFields: false,
|
||||||
|
fields: ['docroot' => new Assert\Choice(['web', 'docroot'])],
|
||||||
|
)]
|
||||||
|
public array $drupal;
|
||||||
|
|
||||||
#[Assert\Choice(choices: ['node', 'php'])]
|
#[Assert\Choice(choices: ['node', 'php'])]
|
||||||
#[Assert\NotBlank]
|
#[Assert\NotBlank]
|
||||||
public string $language;
|
public string $language;
|
||||||
|
|
Loading…
Reference in a new issue