Documentation

RegexRequestMatcher
in package
implements RequestMatcher

FinalYes

Match a request with a regex on the uri.

since version 1.2 and will be removed in 2.0. Use instead.

Tags
author

Joel Wurtz joel.wurtz@gmail.com

Table of Contents

Interfaces

RequestMatcher
Match a request.

Properties

$regex  : string
Matching regex.

Methods

__construct()  : mixed
matches()  : bool
Decides whether the rule(s) implemented by the strategy matches the supplied request.

Properties

Methods

matches()

Decides whether the rule(s) implemented by the strategy matches the supplied request.

public matches(RequestInterface $request) : bool
Parameters
$request : RequestInterface

The PSR7 request to check for a match

Return values
bool

true if the request matches, false otherwise


        
On this page

Search results