Interface PersistenceInterface
Namespace: Authentication\Authenticator
Method Summary
-
clearIdentity() public
Clears the identity data
-
persistIdentity() public
Persists the users data
Method Detail
clearIdentity() ¶ public
clearIdentity(Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response): array{request: \Psr\Http\Message\ServerRequestInterface, response: \Psr\Http\Message\ResponseInterface}
Clears the identity data
Parameters
-
Psr\Http\Message\ServerRequestInterface$request The request object.
-
Psr\Http\Message\ResponseInterface$response The response object.
Returns
array{request: \Psr\Http\Message\ServerRequestInterface, response: \Psr\Http\Message\ResponseInterface}Returns an array containing the request and response object
persistIdentity() ¶ public
persistIdentity(Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, ArrayAccess|array $identity): array{request: \Psr\Http\Message\ServerRequestInterface, response: \Psr\Http\Message\ResponseInterface}
Persists the users data
Parameters
-
Psr\Http\Message\ServerRequestInterface$request The request object.
-
Psr\Http\Message\ResponseInterface$response The response object.
-
ArrayAccess|array$identity Identity data to persist.
Returns
array{request: \Psr\Http\Message\ServerRequestInterface, response: \Psr\Http\Message\ResponseInterface}Returns an array containing the request and response object