public function override($name, array $routeData) { if (!isset($this->routes[$name])) { throw new \InvalidArgumentException("No route for name {$name} defined"); } $this->routes[$name] = $routeData + $this->routes[$name]; }