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
delete() public
delete(): void
Delete user record.
Returns
voidread() public
read(): ArrayAccess|array|null
Read user record.
Returns
ArrayAccess|array|nullredirectUrl() public
redirectUrl(mixed $url = null): array|string|null
Get/set redirect URL.
Parameters
-
mixed$url optional Redirect URL. If
nullreturns current URL. Iffalsedeletes currently set URL.
Returns
array|string|nullwrite() public
write(mixed $user): void
Write user record.
Parameters
-
mixed$user array or \ArrayAccess User record.
Returns
void
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/interface-Cake.Auth.Storage.StorageInterface.html