code: public function getRoute($name)
  	{
  		if (!isset($this->namedRoutes[$name])) {
  			throw new \InvalidArgumentException("Route with name $name not found.");
  		}
  
  		return $this->namedRoutes[$name];
  	}
docs: {@inheritdoc}