Class

eZ\Publish\Core\REST\Server\Security\CsrfTokenManager

class CsrfTokenManager extends CsrfTokenManager

Methods

__construct(TokenGeneratorInterface $generator = null, TokenStorageInterface $storage = null, RequestStack $requestStack = null)

bool hasToken(string $tokenId)

Tests if a CSRF token is stored.

Details

at line 26
public __construct(TokenGeneratorInterface $generator = null, TokenStorageInterface $storage = null, RequestStack $requestStack = null)

Parameters

TokenGeneratorInterface $generator
TokenStorageInterface $storage
RequestStack $requestStack

at line 43
public bool hasToken(string $tokenId)

Tests if a CSRF token is stored.

Parameters

string $tokenId

Return Value

bool