UrlPathStartswith
class UrlPathStartswith implements Rule, Bypass
A rule to match beginning of URL
Traits
Path aware trait for rules and bypasses
Methods
__construct(string $path)
Initialize the rule with the path
bool
checkRequestForBypass(HTTPRequest $request)
Check the request for whether we can bypass the confirmation
null|Item
getRequestConfirmationItem(HTTPRequest $request)
Check the request by the rule and return a confirmation item
Details
in PathAware at line 20
string
getPath()
Returns the path
in PathAware at line 32
$this
setPath(string $path)
Update the path
at line 20
__construct(string $path)
Initialize the rule with the path
at line 68
bool
checkRequestForBypass(HTTPRequest $request)
Check the request for whether we can bypass the confirmation
at line 73
null|Item
getRequestConfirmationItem(HTTPRequest $request)
Check the request by the rule and return a confirmation item