|
throw new \InvalidArgumentException(sprintf('Parameter "%s" for route "%s" must match "%s" ("%s" given).', $token[3], $name, $requirements[$token[3]], $tparams[$token[3]]));
|
|
throw new \InvalidArgumentException(sprintf('Parameter "%s" for route "%s" must match "%s" ("%s" given).', $token[3], $name, $requirements[$token[3]], $tparams[$token[3]]));
|
|
// %2F is not valid in a URL, so we don't encode it (which is fine as the requirements explicitly allowed it)
|
|
// %2F is not valid in a URL, so we don't encode it (which is fine as the requirements explicitly allowed it)
|
|
$url = $token[1].str_replace('%2F', '/', urlencode($tparams[$token[3]])).$url;
|
|
$url = $token[1].str_replace('%2F', '/', urlencode($tparams[$token[3]])).$url;
|