Class

eZ\Publish\Core\REST\Server\Input\Parser\Limitation\RouteBasedLimitationParser

class RouteBasedLimitationParser extends BaseParser

Generic limitation value parser.

Instances are built with: - The name of a route parameter, that will be searched for limitation values Example: "sectionId" from "/content/section/{sectionId}" - The FQN of the limitation value object that the parser builds

Methods

setRequestParser(RequestParser $requestParser)

from BaseParser
__construct(string $limitationRouteParameterName, string $limitationClass)

LimitationParser constructor.

ValueObject parse(array $data, ParsingDispatcher $parsingDispatcher)

Parse input structure.

Details

in BaseParser at line 22
public setRequestParser(RequestParser $requestParser)

Parameters

RequestParser $requestParser

at line 42
public __construct(string $limitationRouteParameterName, string $limitationClass)

LimitationParser constructor.

Parameters

string $limitationRouteParameterName
string $limitationClass

at line 56
public ValueObject parse(array $data, ParsingDispatcher $parsingDispatcher)

Parse input structure.

Parameters

array $data
ParsingDispatcher $parsingDispatcher

Return Value

ValueObject