replace() public method

Replace replacer with given value.
public replace ( string $url, string $replacer, string $value ) : string
$url string
$replacer string
$value string
return string
Example #1
0
 /**
  * Replaces the given values in the pattern.
  *
  * @param string $pattern
  * @param array $replacers
  *
  * @return string
  */
 private function generateUrlAddress($pattern, $replacers)
 {
     foreach ($replacers as $replacer => $value) {
         $pattern = $this->urlReplacer->replace($pattern, $replacer, $value);
     }
     return $pattern;
 }