|
@@ -67,12 +67,14 @@ EOT
|
|
$stageParams = $siteParams;
|
|
$stageParams = $siteParams;
|
|
$stageParams['settings'] = $stageSettings;
|
|
$stageParams['settings'] = $stageSettings;
|
|
$context = [
|
|
$context = [
|
|
|
|
+ 'extra' => array_diff_key($params, ['instance' => 0, 'sites' => 0]),
|
|
'instance' => $params['instance'],
|
|
'instance' => $params['instance'],
|
|
'name' => $name,
|
|
'name' => $name,
|
|
'stage' => $stage,
|
|
'stage' => $stage,
|
|
'site' => $stageParams,
|
|
'site' => $stageParams,
|
|
];
|
|
];
|
|
$destination = "web/sites/${context['name']}/${context['stage']}.settings.local.php";
|
|
$destination = "web/sites/${context['name']}/${context['stage']}.settings.local.php";
|
|
|
|
+ echo "Building $destination\n";
|
|
[$msg, $error] = $this->render($wrapper, $context, $destination);
|
|
[$msg, $error] = $this->render($wrapper, $context, $destination);
|
|
if ($error) {
|
|
if ($error) {
|
|
$output->writeln(sprintf("Failed rendering %s settings for site %s: %s", $stage, $name, $msg));
|
|
$output->writeln(sprintf("Failed rendering %s settings for site %s: %s", $stage, $name, $msg));
|