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

        $this->checkDeprecatedOption($key);

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

        $this->checkDeprecatedOption($key);

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

@param string $key The key

@return mixed The value

@throws \InvalidArgumentException
Gets an option value .