Symfony\Component\Routing\Router::setOption PHP Method

setOption() public method

Sets an option.
public setOption ( string $key, mixed $value )
$key string The key
$value mixed The value
    public function setOption($key, $value)
    {
        if (!array_key_exists($key, $this->options)) {
            throw new \InvalidArgumentException(sprintf('The Router does not support the "%s" option.', $key));
        }

        $this->options[$key] = $value;
    }