/** * {@inheritdoc} */ public function addRoute(Route $route) { if (parent::has($this->getStorageName($route))) { throw new \InvalidArgumentException("Route to '{$route->getPath()}'" . " with method(s) {$route->getMethodsAsString()} already exists."); } parent::set($this->getStorageName($route), $route); }
/** * Removes a header with a given case-insensitive name from the collection. * * @param string $name Header name to remove. * * @return void */ public function remove($name) { parent::remove($this->normalizeName($name)); }