Class

eZ\Bundle\EzPublishRestBundle\Routing\OptionsLoader\RouteCollectionMapper

class RouteCollectionMapper

Maps a REST routes collection to the corresponding set of REST OPTIONS routes.

Merges routes with the same path to a unique one, with the aggregate of merged methods in the _methods default.

Methods

__construct(Mapper $mapper)

RouteCollection mapCollection(RouteCollection $restRouteCollection)

Iterates over $restRouteCollection, and returns the corresponding RouteCollection of OPTIONS REST routes.

Details

at line 25
public __construct(Mapper $mapper)

Parameters

Mapper $mapper

at line 37
public RouteCollection mapCollection(RouteCollection $restRouteCollection)

Iterates over $restRouteCollection, and returns the corresponding RouteCollection of OPTIONS REST routes.

Parameters

RouteCollection $restRouteCollection

Return Value

RouteCollection