code: public function addRoute($methods, $path, $controller, $name = null, array $options = [])
  	{
  		if ($this->isCaching()) {
  			return null;
  		}
  
  		$methods = (array) $methods;
  		$path = $this->makePath($path);
  
  		$route = $this->createRoute($methods, $path, $controller, $name, $options);
  		$this->routes->attach($route);
  
  		if ($name) {
  			$this->addNamedRoute($name, $route);
  		}
  
  		$this->routeCollector->addRoute($route->getMethods(), $path, $route);
  
  		return $route;
  	}
docs: {@inheritdoc}