Symfony\Bundle\FrameworkBundle\Controller\Controller::generateUrl
Generates a URL from the given parameters.
Signature
public function generateUrl(string
$route,
[mixed
$parameters = UrlGeneratorInterface::ABSOLUTE_PATH,
[Boolean|string
$referenceType = UrlGeneratorInterface::ABSOLUTE_PATH]] )
Parameters
$route
—
string
- The name of the route
$parameters
—
array
- An array of parameters
$referenceType
—
object
- The type of reference (one of the constants in UrlGeneratorInterface)
Returns
- string
- The generated URL