UrlPathStartswith
class UrlPathStartswith implements Rule, Bypass (View source)
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
string
getPath()
Returns the path
$this
setPath(string $path)
Update the path
__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