Symfony API
Namespace

Symfony\Component\Routing\Generator

UrlGenerator UrlGenerator can generate a URL or a path for any route in the RouteCollection based on the passed parameters.

Interfaces

ConfigurableRequirementsInterface ConfigurableRequirementsInterface must be implemented by URL generators that can be configured whether an exception should be generated when the parameters do not match the requirements.
UrlGeneratorInterface UrlGeneratorInterface is the interface that all URL generator classes must implement.