Commit becc0799 authored by Jon Pugh's avatar Jon Pugh

Adding "document_root" property for projects where "root" is not the exposed web root.

parent 930bd969
......@@ -51,7 +51,7 @@ class PlatformContext extends ContextSubscriber implements ConfigurationInterfac
$options = [
'root' =>
Provision::newProperty()
->description('platform: path to the Drupal installation. You may use a relative or absolute path.')
->description('platform: path to the source code for this platform. You may use a relative or absolute path. May be different from document root.')
->defaultValue(getcwd())
->required(TRUE)
->validate(function($path) {
......@@ -135,6 +135,11 @@ class PlatformContext extends ContextSubscriber implements ConfigurationInterfac
return $git_url;
})
,
'document_root' =>
Provision::newProperty()
->description('platform: Relative path to the "document root" in your source code. Leave blank if docroot is the root.')
->required(FALSE)
,
];
return $options;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment