PHP Class eZ\Bundle\EzPublishRestBundle\Routing\OptionsLoader\Mapper

Show file Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
getOptionsRouteName ( Symfony\Component\Routing\Route $route ) : string Returns the OPTIONS name of a REST route.
mapRoute ( Symfony\Component\Routing\Route $route ) : Symfony\Component\Routing\Route
mergeMethodsDefault ( Symfony\Component\Routing\Route $optionsRoute, Symfony\Component\Routing\Route $restRoute ) : Symfony\Component\Routing\Route Merges the methods from $restRoute into the _method default of $optionsRoute.

Method Details

getOptionsRouteName() public method

Returns the OPTIONS name of a REST route.
public getOptionsRouteName ( Symfony\Component\Routing\Route $route ) : string
$route Symfony\Component\Routing\Route Route
return string

mapRoute() public method

public mapRoute ( Symfony\Component\Routing\Route $route ) : Symfony\Component\Routing\Route
$route Symfony\Component\Routing\Route Route REST route
return Symfony\Component\Routing\Route

mergeMethodsDefault() public method

Merges the methods from $restRoute into the _method default of $optionsRoute.
public mergeMethodsDefault ( Symfony\Component\Routing\Route $optionsRoute, Symfony\Component\Routing\Route $restRoute ) : Symfony\Component\Routing\Route
$optionsRoute Symfony\Component\Routing\Route
$restRoute Symfony\Component\Routing\Route
return Symfony\Component\Routing\Route $optionsRoute with the methods from $restRoute in the _methods default