mirror of
https://github.com/opdavies/build-configs.git
synced 2025-01-23 02:27:33 +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']),
|
||||
'version' => new Assert\Type('integer'),
|
||||
],
|
||||
allowExtraFields: false,
|
||||
)]
|
||||
public array $database;
|
||||
|
||||
#[Assert\Collection(
|
||||
allowExtraFields: false,
|
||||
fields: ['docroot' => new Assert\Choice(['web', 'docroot'])],
|
||||
)]
|
||||
public array $drupal;
|
||||
|
||||
#[Assert\Choice(choices: ['node', 'php'])]
|
||||
#[Assert\NotBlank]
|
||||
public string $language;
|
||||
|
|
Loading…
Reference in a new issue