fix: allow for no docroot for Drupal projects

Some projects don't use a docroot/web/public directory so this needs be
able to be set to `null`. As I can't do this with Twig's `is not
defined` test, I'll need to remove the default `web` value and add it to
the build.yaml file for the appropriate projects.

If I can get this to work in the future, I'll re-add `web` as the
default value as that's the default and most common option.
This commit is contained in:
Oliver Davies 2023-04-01 11:26:35 +01:00
parent af7357b639
commit 31bf4af68d

View file

@ -107,11 +107,6 @@ $app->command(
}
if ('drupal-project' === Arr::get($configurationData, 'type')) {
// Ensure a "docroot" value is set.
if (null === Arr::get($configurationData, 'drupal.docroot')) {
Arr::set($configurationData, 'drupal.docroot', 'web');
}
// Add a Drupal version of phpunit.xml.dist.
$filesToGenerate->push(['drupal-project/phpunit.xml.dist', 'phpunit.xml.dist']);
}