Open Monograph Press  3.3.0
Http\Message\RequestMatcher\RegexRequestMatcher Class Reference
Inheritance diagram for Http\Message\RequestMatcher\RegexRequestMatcher:
Http\Message\RequestMatcher\RequestMatcher Http\Message\RequestMatcher

Public Member Functions

 __construct ($regex)
 
 matches (RequestInterface $request)
 
- Public Member Functions inherited from Http\Message\RequestMatcher\RequestMatcher
 __construct ($path=null, $host=null, $methods=[], $schemes=[])
 

Detailed Description

Match a request with a regex on the uri.

Author
Joel Wurtz joel..nosp@m.wurt.nosp@m.z@gma.nosp@m.il.c.nosp@m.om
Deprecated:
since version 1.2 and will be removed in 2.0. Use RequestMatcher instead.

Definition at line 17 of file RegexRequestMatcher.php.

Constructor & Destructor Documentation

◆ __construct()

Http\Message\RequestMatcher\RegexRequestMatcher::__construct (   $regex)
Parameters
string$regex

Definition at line 32 of file RegexRequestMatcher.php.

Member Function Documentation

◆ matches()

Http\Message\RequestMatcher\RegexRequestMatcher::matches ( RequestInterface  $request)

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

Parameters
RequestInterface$requestThe PSR7 request to check for a match
Returns
bool true if the request matches, false otherwise
}@api}

Reimplemented from Http\Message\RequestMatcher\RequestMatcher.

Definition at line 40 of file RegexRequestMatcher.php.


The documentation for this class was generated from the following file: