Skip to content

Commit 474d00b

Browse files
author
Gareth Midwood
committed
Add additional controls for custom webroots
1 parent 1220f8a commit 474d00b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • src/Environment/Command/Container

src/Environment/Command/Container/Php.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ protected function askQuestions()
9191
$this->_config['environment']['VIRTUAL_HOST'] = '.' . $dockername . '.docker';
9292

9393

94-
$useCustomWebroot = false;
94+
$useCustomWebroot = isset($this->_config['relative_webroot_dir'])
95+
&& strlen($this->_config['relative_webroot_dir']) > 0
96+
? true
97+
: false;
9598

9699
$this->askYesNoQuestion(
97100
'Use custom webroot',
@@ -100,6 +103,8 @@ protected function askQuestions()
100103

101104
if ($useCustomWebroot) {
102105
$this->_editCustomWebroot();
106+
} else {
107+
$this->_config['relative_webroot_dir'] = '';
103108
}
104109

105110
$editEnvironmentVariables = false;

0 commit comments

Comments
 (0)