cleanup(); } $installOptions = $this->getInstallConfig(); /* Install application */ if ($installOptions) { $installCmd = 'php -f ' . BP . '/bin/magento setup:install -vvv'; $installArgs = []; foreach ($installOptions as $optionName => $optionValue) { if (is_bool($optionValue)) { if (true === $optionValue) { $installCmd .= " --$optionName"; } continue; } $installCmd .= " --$optionName=%s"; $installArgs[] = $optionValue; } $this->_shell->execute($installCmd, $installArgs); } $this->runPostInstallCommands(); } /** * @inheritdoc * * Return empty array of custom directories * @return array */ protected function getCustomDirs() { return []; } }