public function expandUri($uri, array $variables) { $template = new UriTemplate(); return $template->expand($uri, $variables); }