Class

eZ\Bundle\EzPublishRestBundle\Routing\OptionsLoader\Mapper

class Mapper

Maps a standard REST route to its OPTIONS equivalent.

Methods

Route mapRoute(Route $route)

Route mergeMethodsDefault(Route $optionsRoute, Route $restRoute)

Merges the methods from $restRoute into the _method default of $optionsRoute.

string getOptionsRouteName(Route $route)

Returns the OPTIONS name of a REST route.

Details

at line 23
public Route mapRoute(Route $route)

Parameters

Route $route Route REST route

Return Value

Route

at line 48
public Route mergeMethodsDefault(Route $optionsRoute, Route $restRoute)

Merges the methods from $restRoute into the _method default of $optionsRoute.

Parameters

Route $optionsRoute
Route $restRoute

Return Value

Route $optionsRoute with the methods from $restRoute in the _methods default

at line 74
public string getOptionsRouteName(Route $route)

Returns the OPTIONS name of a REST route.

Parameters

Route $route Route

Return Value

string