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

Merges routes with the same path to a unique one, with the aggregate of merged methods in the _methods default.
Show file Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$mapper Mapper

Public Methods

Method Description
__construct ( Mapper $mapper )
mapCollection ( RouteCollection $restRouteCollection ) : RouteCollection Iterates over $restRouteCollection, and returns the corresponding RouteCollection of OPTIONS REST routes.

Method Details

__construct() public method

public __construct ( Mapper $mapper )
$mapper Mapper

mapCollection() public method

Iterates over $restRouteCollection, and returns the corresponding RouteCollection of OPTIONS REST routes.
public mapCollection ( RouteCollection $restRouteCollection ) : RouteCollection
$restRouteCollection Symfony\Component\Routing\RouteCollection
return Symfony\Component\Routing\RouteCollection

Property Details

$mapper protected property

protected Mapper,eZ\Bundle\EzPublishRestBundle\Routing\OptionsLoader $mapper
return Mapper