original_string: public function createPreflightCorsResponseWithRouteOptions(HttpRequest $request, $routeMatch = null)
      {
          $options = $this->options;
          if ($routeMatch instanceof RouteMatch || $routeMatch instanceof DeprecatedRouteMatch) {
              $options->setFromArray($routeMatch->getParam(CorsOptions::ROUTE_PARAM) ?: []);
          }
          $response = $this->createPreflightCorsResponse($request);
  
          return $response;
      }
code: public function createPreflightCorsResponseWithRouteOptions(HttpRequest $request, $routeMatch = null)
      {
          $options = $this->options;
          if ($routeMatch instanceof RouteMatch || $routeMatch instanceof DeprecatedRouteMatch) {
              $options->setFromArray($routeMatch->getParam(CorsOptions::ROUTE_PARAM) ?: []);
          }
          $response = $this->createPreflightCorsResponse($request);
  
          return $response;
      }
code_tokens: public function createPreflightCorsResponseWithRouteOptions ( HttpRequest $ request , $ routeMatch = null ) { $ options = $ this -> options ; if ( $ routeMatch instanceof RouteMatch || $ routeMatch instanceof DeprecatedRouteMatch ) { $ options -> setFromArray ( $ routeMatch -> getParam ( CorsOptions :: ROUTE_PARAM ) ? : [ ] ) ; } $ response = $ this -> createPreflightCorsResponse ( $ request ) ; return $ response ; }
docstring: Create a preflight response by adding the correspoding headers which are merged with per-route configuration
  
  @param HttpRequest                          $request
  @param RouteMatch|DeprecatedRouteMatch|null $routeMatch
  
  @return HttpResponse
docstring_tokens: Create a preflight response by adding the correspoding headers which are merged with per - route configuration