Fix config creation

This commit is contained in:
Eric Espie
2026-04-14 17:01:54 +02:00
parent cbafcccde5
commit 662d6e3fb4
3 changed files with 11 additions and 4 deletions

View File

@@ -27,14 +27,16 @@ abstract class StepSequencer
protected Parameters $oParams;
protected Config $oConfig;
protected RunTimeEnvironment $oRunTimeEnvironment;
protected string $sSourceDesc;
/**
* @param \Parameters $oParams
* @param \RunTimeEnvironment|null $oRunTimeEnvironment
* @param string $sSourceDesc
*
* @throws \CoreException
*/
public function __construct(Parameters $oParams, ?RunTimeEnvironment $oRunTimeEnvironment = null)
public function __construct(Parameters $oParams, ?RunTimeEnvironment $oRunTimeEnvironment = null, string $sSourceDesc = 'Setup')
{
if (is_null($oRunTimeEnvironment)) {
$sEnvironment = $oParams->Get('target_env', 'production');
@@ -49,6 +51,7 @@ abstract class StepSequencer
$this->oConfig = new Config();
$this->oConfig->UpdateFromParams($aParamValues);
utils::SetConfig($this->oConfig);
$this->sSourceDesc = $sSourceDesc;
}
public function LogStep($sStep, $aResult)