Interface

Symfony\Component\Routing\Generator\UrlGeneratorInterface

interface UrlGeneratorInterface implements RequestContextAwareInterface

UrlGeneratorInterface is the interface that all URL generator classes must implements.

Methods

setContext(RequestContext $context)

Sets the request context.

from RequestContextAwareInterface
string generate(string $name, mixed $parameters = array(), Boolean $absolute = false)

Generates a URL from the given parameters.

Details

public setContext(RequestContext $context)

Sets the request context.

Parameters

RequestContext $context The context

at line 36
public string generate(string $name, mixed $parameters = array(), Boolean $absolute = false)

Generates a URL from the given parameters.

Parameters

string $name The name of the route
mixed $parameters An array of parameters
Boolean $absolute Whether to generate an absolute URL

Return Value

string The generated URL