code: private static function replaceUrlParameter($url, $source)
      {
          $parameter = static::urlParameter($url);
  
          return str_replace('{'.$parameter.'}', $source[$parameter], $url);
      }
docs: Replace url parameter.
  
  @param string $url
  @param mixed  $source
  
  @return string