This commit is contained in:
Fabien Potencier 2017-11-16 17:13:44 +02:00
parent b4dbdd7cd8
commit 07fc11cd65

View File

@ -33,10 +33,10 @@ class CsrfTokenManager implements CsrfTokenManagerInterface
/** /**
* @param null|string|RequestStack|callable $namespace * @param null|string|RequestStack|callable $namespace
* * null: generates a namespace using $_SERVER['HTTPS'] * * null: generates a namespace using $_SERVER['HTTPS']
* * string: uses the given string * * string: uses the given string
* * RequestStack: generates a namespace using the current master request * * RequestStack: generates a namespace using the current master request
* * callable: uses the result of this callable (must return a string) * * callable: uses the result of this callable (must return a string)
*/ */
public function __construct(TokenGeneratorInterface $generator = null, TokenStorageInterface $storage = null, $namespace = null) public function __construct(TokenGeneratorInterface $generator = null, TokenStorageInterface $storage = null, $namespace = null)
{ {