Gets an option value.
string $key The key:
mixed The value
\InvalidArgumentException
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];
}