Interface StorageInterface
Describes the methods that any class representing an Auth data storage should comply with.
Namespace: Cake\Auth\Storage
Method Summary
-
delete() public
Delete user record.
-
read() public
Read user record.
-
redirectUrl() public
Get/set redirect URL.
-
write() public
Write user record.
Method Detail
redirectUrl() ¶ public
redirectUrl(mixed $url = null): array|string|null
Get/set redirect URL.
Parameters
-
mixed
$url optional Redirect URL. If
null
returns current URL. Iffalse
deletes currently set URL.
Returns
array|string|null
write() ¶ public
write(mixed $user): void
Write user record.
Parameters
-
mixed
$user array or \ArrayAccess User record.
Returns
void