DataSift\Storyplayer\ConfigLib\WrappedConfig::mergeData PHP Method

mergeData() public method

merge data into this config
public mergeData ( string $path, mixed $dataToMerge ) : void
$path string path.to.merge.to
$dataToMerge mixed the data to merge at $path
return void
    public function mergeData($path, $dataToMerge)
    {
        return $this->config->mergeData($path, $dataToMerge);
    }

Usage Example

 /**
  * @covers DataSift\Storyplayer\ConfigLib\WrappedConfig::mergeData()
  * @expectedException DataSift\Stone\ObjectLib\E4xx_PathCannotBeExtended
  */
 public function testCannotMergeDataByOverExtendingAScalar()
 {
     // ----------------------------------------------------------------
     // setup your test
     $obj = new WrappedConfig();
     $obj->loadConfigFromFile(__DIR__ . "/wrapped-config-2.json");
     // ----------------------------------------------------------------
     // perform the change
     $obj->mergeData("storyplayer.ipAddress.dirs.cwd", getcwd());
 }