To provide an abstract and framework agnostic solution there are URL checkers implemented that allow you to customize the comparision of the current URL if needed. For example to another frameworks routing.
URL checkers use setter methods and sometimes constructor args to set configuration options.
The default checker allows you to compare an URL by regex or string URLs.
Option setters:
- setCheckFullUrl(bool $check): To compare the full URL, including protocol, host and port or not. Default is
false
- setUseRegex(bool $useRegex): Compares the URL by a regular expression provided in the
$loginUrls
argument of the checker.
Option setters:
Use this checker if you want to use the array notation of CakePHPs routing system. The checker also works with named routes.
- setCheckFullUrl(bool $check): To compare the full URL, including protocol, host and port or not. Default is
false
An URL checker must implement the \Phauthentication\Authentication\UrlChecker\UrlCheckterInterface
.