Class MultiUrlChecker
Multi URL Checker
Supports checking multiple login URLs, handling both string URLs and array-based CakePHP routes.
Namespace: Authentication\UrlChecker
Property Summary
-
$_defaultOptions protected
array<string, mixed>Default Options
Method Summary
-
_checkSingleUrl() protected
Check a single URL
-
_isSingleRoute() protected
Check if the array is a single CakePHP route (not an array of routes)
-
_mergeDefaultOptions() protected
Merge default options with provided options
-
check() public
Checks the requests if it is the configured login action
Method Detail
_checkSingleUrl() ¶ protected
_checkSingleUrl(Psr\Http\Message\ServerRequestInterface $request, array|string $url, array<string, mixed> $options): bool
Check a single URL
Parameters
-
Psr\Http\Message\ServerRequestInterface$request The request.
-
array|string$url The URL to check (can be string or array).
-
array<string, mixed>$options Options array.
Returns
bool_isSingleRoute() ¶ protected
_isSingleRoute(array|string $value): bool
Check if the array is a single CakePHP route (not an array of routes)
Parameters
-
array|string$value The value to check
Returns
bool_mergeDefaultOptions() ¶ protected
_mergeDefaultOptions(array<string, mixed> $options): array<string, mixed>
Merge default options with provided options
Parameters
-
array<string, mixed>$options The options to merge.
Returns
array<string, mixed>check() ¶ public
check(Psr\Http\Message\ServerRequestInterface $request, array|string $loginUrls, array<string, mixed> $options = []): bool
Checks the requests if it is the configured login action
Parameters
-
Psr\Http\Message\ServerRequestInterface$request -
array|string$loginUrls -
array<string, mixed>$options optional
Returns
boolProperty Detail
$_defaultOptions ¶ protected
Default Options
useRegexWhether to useloginUrlas regular expression(s).checkFullUrlWhether to check the full request URI.
Type
array<string, mixed>