Sets the route parameters.
array $parameters: The array of parameters.
$this
\UnexpectedValueException If this is a URI with no corresponding route.
public function setRouteParameters($parameters) { if ($this->unrouted) { throw new \UnexpectedValueException('External URLs do not have route parameters.'); } $this->routeParameters = $parameters; return $this; }