protected function replacePattern($pattern) {
    $replace = array(
      '$DIR' => dirname($this->configFile),
      '$CWD' => getcwd(),
    );
    return str_replace(array_keys($replace), array_values($replace), $pattern);
  }
protected function replacePattern($pattern) {
    $replace = array(
      '$DIR' => dirname($this->configFile),
      '$CWD' => getcwd(),
    );
    return str_replace(array_keys($replace), array_values($replace), $pattern);
  }
protected function replacePattern ( $ pattern ) { $ replace = array ( '$DIR' => dirname ( $ this -> configFile ) , '$CWD' => getcwd ( ) , ) ; return str_replace ( array_keys ( $ replace ) , array_values ( $ replace ) , $ pattern ) ; }
Helper to replace certain patterns with actual values.

@param string $pattern
Pattern to be replaced

@return string
Helper to replace certain patterns with actual values .