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

getOption() public method

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

        return $this->options[$key];
    }