W3cubDocs

/CakePHP 4.4

Interface StorageInterface

Describes the methods that any class representing an Auth data storage should comply with.

Namespace: Cake\Auth\Storage

Method Summary

Method Detail

delete() public

delete(): void

Delete user record.

Returns

void

read() public

read(): ArrayAccess|array|null

Read user record.

Returns

ArrayAccess|array|null

redirectUrl() public

redirectUrl(mixed $url = null): array|string|null

Get/set redirect URL.

Parameters

mixed $url optional

Redirect URL. If null returns current URL. If false 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

© 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