Class Yiisoft\Yii\AuthClient\StateStorage\SessionStateStorage
| Inheritance | Yiisoft\Yii\AuthClient\StateStorage\SessionStateStorage |
|---|---|
| Implements | Yiisoft\Yii\AuthClient\StateStorage\StateStorageInterface |
SessionStateStorage provides Auth client state storage based on web session.
See also:
- Yiisoft\Yii\AuthClient\StateStorage\StateStorageInterface
- \Yiisoft\Session\SessionInterface
Public Methods
Method Details
| public mixed __construct ( \Yiisoft\Session\SessionInterface $session ) | ||
| $session | \Yiisoft\Session\SessionInterface | |
public function __construct(
/**
* @var SessionInterface session object to be used.
*
* After the SessionStateStorage object is created, if you want to change this property,
* you should only assign it with a session object.
*
* If not set - application 'session' component will be used, but only, if it is available (e.g. in web application),
* otherwise - no session will be used and no data saving will be performed.
*/
private readonly SessionInterface $session
) {
}
| public mixed get ( string $key ) | ||
| $key | string | |
#[\Override]
public function get(string $key): mixed
{
return $this->session->get($key);
}
Signup or Login in order to comment.