code: public function addRoute(Route $route)
      {
          // get the specific path matcher for this route
          $pathMatcher = $this->getPathMatcherForRoute($route);
  
          $this->routes[] = [
              'pathMatcher' => $pathMatcher,
              'route' => $route
          ];
      }
docs: {@inheritdoc}