Final Class Yiisoft\Csrf\Hmac\IdentityGenerator\SessionCsrfTokenIdentityGenerator
| Inheritance | Yiisoft\Csrf\Hmac\IdentityGenerator\SessionCsrfTokenIdentityGenerator |
|---|---|
| Implements | Yiisoft\Csrf\Hmac\IdentityGenerator\CsrfTokenIdentityGeneratorInterface |
Session based CSRF token identification.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Csrf\Hmac\IdentityGenerator\SessionCsrfTokenIdentityGenerator | |
| generate() | Yiisoft\Csrf\Hmac\IdentityGenerator\SessionCsrfTokenIdentityGenerator |
Method Details
| public mixed __construct ( \Yiisoft\Session\SessionInterface $session ) | ||
| $session | \Yiisoft\Session\SessionInterface | |
public function __construct(SessionInterface $session)
{
$this->session = $session;
}
Signup or Login in order to comment.