protected function merge(array $merge, array $config = []) {
    foreach ($merge as $path) {
      $merge = file_get_contents($path);
      $merge = str_replace('%paths.base%', dirname($path), $merge);
      $merge = Yaml::decode($merge);

      $config = NestedArray::mergeDeep($config, $merge);
    }
    return $config;
  }
protected function merge(array $merge, array $config = []) {
    foreach ($merge as $path) {
      $merge = file_get_contents($path);
      $merge = str_replace('%paths.base%', dirname($path), $merge);
      $merge = Yaml::decode($merge);

      $config = NestedArray::mergeDeep($config, $merge);
    }
    return $config;
  }
protected function merge ( array $ merge , array $ config = [ ] ) { foreach ( $ merge as $ path ) { $ merge = file_get_contents ( $ path ) ; $ merge = str_replace ( '%paths.base%' , dirname ( $ path ) , $ merge ) ; $ merge = Yaml :: decode ( $ merge ) ; $ config = NestedArray :: mergeDeep ( $ config , $ merge ) ; } return $ config ; }
Merges partials into the aggregated Behat configuration.

@param string[] $merge
Paths to the partials to merge in. In each partial, %paths.base% will
be replaced with the directory in which the partial lives.
@param array $config
(optional) The aggregated configuration.

@return array
The aggregated configuration with all partials merged in.
Merges partials into the aggregated Behat configuration .