You are here

public function RequestContext::setParameter in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/RequestContext.php \Symfony\Component\Routing\RequestContext::setParameter()

Sets a parameter value.

Parameters

string $name A parameter name:

mixed $parameter The parameter value:

Return value

RequestContext The current instance, implementing a fluent interface

File

vendor/symfony/routing/RequestContext.php, line 338

Class

RequestContext
Holds information about the current request.

Namespace

Symfony\Component\Routing

Code

public function setParameter($name, $parameter) {
  $this->parameters[$name] = $parameter;
  return $this;
}