Generates a URL from the given parameters.
If the generator is not able to generate the url, it must throw the RouteNotFoundException as documented below.
@api
string $name The name of the route:
mixed $parameters An array of parameters:
Boolean $absolute Whether to generate an absolute URL:
string The generated URL
RouteNotFoundException if route doesn't exist
Overrides UrlGeneratorInterface::generate
public function generate($name, $parameters = array(), $absolute = false) {
return $this
->getGenerator()
->generate($name, $parameters, $absolute);
}