IMPORTANT:
we make sure that the data we return is a read-only copy of our
definition. At the time of writing, we're not sure if other parts
of SPv2 will break as a result.
public getConfig ( ) : DataSift\Stone\ObjectLib\BaseObject | ||
return | DataSift\Stone\ObjectLib\BaseObject |
/** * * @param Injectables $injectables * @param \DataSift\Storyplayer\TestEnvironmentsLib\TestEnvironmentsConfig|\DataSift\Storyplayer\DefinitionLib\TestEnvironment_Definition $envConfig * @return void */ public function mergeTestEnvironmentConfig($injectables, $envConfig = null) { // do we have a test environment? if (!isset($injectables->activeTestEnvironmentName) || $envConfig === null) { $this->setData('target', null); return; } // we want to remember the name of the test environment $this->setData('target.name', $injectables->activeTestEnvironmentName); // merge in the loaded config $this->mergeData('target', $envConfig->getConfig()); }