class Uri implements RequestPatternInterface (View source)

This class holds an URI pattern an decides, if a \Neos\Flow\Mvc\ActionRequest object matches against this pattern

Properties

protected array $options

Methods

__construct(array $options)

Expects options in the form array('uriPattern' => '')

bool
matchRequest(ActionRequest $request)

Matches an ActionRequest against its set URL pattern rules

Details

__construct(array $options)

Expects options in the form array('uriPattern' => '')

Parameters

array $options

bool matchRequest(ActionRequest $request)

Matches an ActionRequest against its set URL pattern rules

Parameters

ActionRequest $request

The request that should be matched

Return Value

bool

true if the pattern matched, false otherwise

Exceptions

InvalidRequestPatternException