|
@@ 168-174 (lines=7) @@
|
| 165 |
|
* |
| 166 |
|
* @return Route |
| 167 |
|
*/ |
| 168 |
|
public static function getRouteOptions($service, $serviceConfig, array $parameters = array(), $useIdPattern = false) |
| 169 |
|
{ |
| 170 |
|
if ($useIdPattern) { |
| 171 |
|
$parameters['id'] = self::ID_PATTERN; |
| 172 |
|
} |
| 173 |
|
return self::getRoute($service, 'OPTIONS', 'optionsAction', $serviceConfig, $parameters); |
| 174 |
|
} |
| 175 |
|
|
| 176 |
|
/** |
| 177 |
|
* Get route for HEAD requests |
|
@@ 186-192 (lines=7) @@
|
| 183 |
|
* |
| 184 |
|
* @return Route |
| 185 |
|
*/ |
| 186 |
|
public static function getRouteHead($service, $serviceConfig, array $parameters = array(), $useIdPattern = false) |
| 187 |
|
{ |
| 188 |
|
if ($useIdPattern) { |
| 189 |
|
$parameters['id'] = self::ID_PATTERN; |
| 190 |
|
} |
| 191 |
|
return self::getRoute($service, 'HEAD', 'optionsAction', $serviceConfig, $parameters); |
| 192 |
|
} |
| 193 |
|
|
| 194 |
|
/** |
| 195 |
|
* Get canonical route for schema requests |