src/Graviton/RestBundle/Routing/Loader/ActionUtils.php
public static function getRouteOptions($service, $serviceConfig, array $parameters = [], $useIdPattern = false)
    {
        if ($useIdPattern) {
            $parameters['id'] = self::ID_PATTERN;
        }
        return self::getRoute($service, 'OPTIONS', 'optionsAction', $serviceConfig, $parameters);
    }
public static function getRouteOptions($service, $serviceConfig, array $parameters = [], $useIdPattern = false)
    {
        if ($useIdPattern) {
            $parameters['id'] = self::ID_PATTERN;
        }
        return self::getRoute($service, 'OPTIONS', 'optionsAction', $serviceConfig, $parameters);
    }
public static function getRouteOptions ( $ service , $ serviceConfig , array $ parameters = [ ] , $ useIdPattern = false ) { if ( $ useIdPattern ) { $ parameters [ 'id' ] = self :: ID_PATTERN ; } return self :: getRoute ( $ service , 'OPTIONS' , 'optionsAction' , $ serviceConfig , $ parameters ) ; }
Get route for OPTIONS requests

@param string  $service       service id
@param array   $serviceConfig service configuration
@param array   $parameters    service params
@param boolean $useIdPattern  generate route with id param

@return Route
Get route for OPTIONS requests